1
0
Fork 0
website/templates/atom.xml

31 lines
1.3 KiB
XML
Raw Normal View History

2023-04-03 23:33:25 +02:00
<?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 }}/"/>
2023-04-03 23:33:25 +02:00
{%- else -%}
2023-04-10 00:46:58 +02:00
<link href="{{ base_url | safe }}"/>
2023-04-03 23:33:25 +02:00
{%- endif %}
2023-04-10 00:46:58 +02:00
<generator uri="{{ base_url | safe }}">tollyx-website</generator>
2023-04-03 23:33:25 +02:00
<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>
2023-04-03 23:33:25 +02:00
</entry>
{%- endfor %}
</feed>