codigocomentado/templates/atom.html.tera

28 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Código Comentado</title>
<link href="https://blog.kirbylife.dev" rel="alternate" />
<link href="https://blog.kirbylife.dev/atom.xml" rel="self" />
<id>https://blog.kirbylife.dev/</id>
<subtitle>Blog personal de kirbylife</subtitle>
<updated>{{ posts.0.created_at | date(format="%Y-%m-%dT%H:%M:%S%.3fZ") }}</updated>
<author>
<name>kirbylife</name>
<email>hola@kirbylife.dev</email>
</author>
{%- for post in posts %}
<entry>
<title>{{ post.title }}</title>
<link href="https://blog.kirbylife.dev/post/{{ post.title | slugify }}-{{ post.id }}" />
<published>{{ post.created_at | date(format="%Y-%m-%dT%H:%M:%S%.3fZ") }}</published>
<updated>{{ post.created_at | date(format="%Y-%m-%dT%H:%M:%S%.3fZ") }}</updated>
<author>
<name>kirbylife</name>
<email>hola@kirbylife.dev</email>
</author>
<id>tag:blog.kirbylife.dev,{{ post.created_at | date(format="%Y-%m-%d") }}:/post/{{ post.id }}</id>
<content type="html">{{ post.content }}</content>
</entry>
{%- endfor %}
</feed>