1
0
Fork 0
website/templates/atom.xml

31 lines
No EOL
1.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title>tollyx.net
{%- if tag %} - #{{ tag.slug }}{% endif -%}
</title>
<subtitle>tollyx's corner of the web</subtitle>
<link href="{{ feed_url | safe }}" rel="self" type="application/atom+xml"/>
{% if tag -%}
<link href="{{ base_url | safe }}tags/{{ tag.slug }}/"/>
{%- else -%}
<link href="{{ base_url | safe }}"/>
{%- endif %}
<generator uri="{{ base_url | safe }}">tollyx-website</generator>
<updated>{{ last_updated | date(format="%+") }}</updated>
<id>{{ feed_url | safe }}</id>
{%- for post in posts %}
<entry xml:lang="en">
<title>{{ post.title }}</title>
<published>{{ post.date | date(format="%+") }}</published>
<updated>{{ post.updated | default(value=post.date) | date(format="%+") }}</updated>
<author>
<name>tollyx</name>
</author>
<link rel="alternate" href="{{ base_url | trim_end_matches(pat='/') | safe }}{{ post.absolute_path | safe }}" type="text/html"/>
<id>{{ base_url | trim_end_matches(pat='/') | safe }}{{ post.absolute_path | safe }}</id>
<content type="html">
{{ post.content }}
</content>
</entry>
{%- endfor %}
</feed>