]> git.ipfire.org Git - ipfire.org.git/blame - src/templates/blog/feed.xml
RSS: Change feed to Atom format
[ipfire.org.git] / src / templates / blog / feed.xml
CommitLineData
f0714277 1<?xml version="1.0" encoding="utf-8"?>
2e08a26b
MT
2
3{% import ipfire.accounts as accounts %}
4
a7d34bc5
MT
5<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
6 <id>https://blog.ipfire.org/feed.xml</id>
f0714277 7
a7d34bc5
MT
8 <link href="https://blog.ipfire.org/feed.xml" rel="self" type="application/atom+xml" />
9 <link href="https://blog.ipfire.org" rel="alternate" type="text/html"/>
10 <link rel="payment" title="Donate!" href="https://www.ipfire.org/donate" type="text/html" />
f0714277 11
a7d34bc5
MT
12 <title>IPFire Blog</title>
13 <subtitle>The official blog of the IPFire Project</subtitle>
14 <logo>https://www.ipfire.org{{ static_url("img/tux/ipfire_tux_32x32.png") }}</logo>
15 <updated>{{ now.isoformat() }}Z</updated>
f0714277 16
a7d34bc5
MT
17 {% for post in posts %}
18 <entry>
19 <id>https://blog.ipfire.org/post/{{ post.slug }}</id>
20 <title type="html">{{ post.title }}</title>
21 <link href="https://blog.ipfire.org/post/{{ post.slug }}" rel="alternate" type="text/html" title="{{ post.title }}" />
22 <author>
23 <name>{{ post.author }}</name>
2e08a26b 24 {% if isinstance(post.author, accounts.Account) %}
a7d34bc5 25 <email>{{ post.author.email }}</email>
2e08a26b 26 {% end %}
a7d34bc5
MT
27 </author>
28 <published>{{ post.published_at.isoformat() }}Z</published>
29 <updated>{{ post.updated_at.isoformat() }}Z</updated>
30 <content type="html"><![CDATA[{% raw post.html %}]]></content>
31 </entry>
32 {% end %}
33</feed>