1
0
Fork 0
website/templates/atom.xml

30 lines
1.2 KiB
XML
Raw Permalink 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">
2024-04-21 14:45:09 +02:00
<title>{{ site_title }}
2023-04-03 23:33:25 +02:00
{%- if tag %} - #{{ tag.slug }}{% endif -%}
</title>
<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 %}
2024-04-21 14:45:09 +02:00
<generator uri="{{ base_url | safe }}">tlxite</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>