summaryrefslogtreecommitdiffstats
path: root/templates/feed.xml
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-05-26 08:54:19 +0200
committerVolpeon <git@volpeon.ink>2021-05-26 08:54:19 +0200
commite3240a57eef6bf0afa193ae83ecd8c5cf627c72f (patch)
treef25393ecfb6f06de92715dc95aa1d0aeb74c4d30 /templates/feed.xml
parentHide some profiles from home page (diff)
downloadvolpeon.ink-e3240a57eef6bf0afa193ae83ecd8c5cf627c72f.tar.gz
volpeon.ink-e3240a57eef6bf0afa193ae83ecd8c5cf627c72f.tar.bz2
volpeon.ink-e3240a57eef6bf0afa193ae83ecd8c5cf627c72f.zip
Category list improvements, generate ATOM feeds
Diffstat (limited to 'templates/feed.xml')
-rw-r--r--templates/feed.xml50
1 files changed, 16 insertions, 34 deletions
diff --git a/templates/feed.xml b/templates/feed.xml
index a968205..ad665d2 100644
--- a/templates/feed.xml
+++ b/templates/feed.xml
@@ -1,10 +1,10 @@
1<?xml version="1.0" encoding="utf-8"?> 1<?xml version="1.0" encoding="utf-8"?>
2<feed xmlns="http://www.w3.org/2005/Atom"> 2<feed xmlns="http://www.w3.org/2005/Atom">
3 <title>$if(section.is_index)$$else$$title$ – $endif$$site.title$</title> 3 <title>$if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$</title>
4 <link href="$url.full$" rel="self"/> 4 <link href="$url.abs$" rel="self"/>
5 <link href="$page.url.full$"/> 5 <link href="$page.url.abs$"/>
6 <updated>$pages.last_update.rfc3339$</updated> 6 <updated>$last_update.rfc3339$</updated>
7 <id>$url.full$</id> 7 <id>$url.abs$</id>
8 $for(author)$ 8 $for(author)$
9 <author> 9 <author>
10 <name>$it.name$</name> 10 <name>$it.name$</name>
@@ -14,33 +14,15 @@
14 </author> 14 </author>
15 $endfor$ 15 $endfor$
16 16
17 $for(pages.all_dated)$ 17 $if(layout.is_categorized_list)$
18 <entry> 18 $for(pages.all)$
19 <id>$it.url.full$</id> 19 $for(it.pages.all)$
20 <title type="html"><![CDATA[$it.title$]]></title> 20 $it:feed_entry()$
21 $if(it.author)$ 21 $endfor$
22 $for(it.author)$ 22 $endfor$
23 <author> 23 $else$
24 <name>$it.name$</name> 24 $for(pages.all)$
25 $if(it.email)$ 25 $it:feed_entry()$
26 <email>$it.email$</email> 26 $endfor$
27 $endif$ 27 $endif$
28 </author>
29 $endfor$
30 $else$
31 $for(author)$
32 <author>
33 <name>$author.name$</name>
34 $if(author.email)$
35 <email>$author.email$</email>
36 $endif$
37 </author>
38 $endfor$
39 $endif$
40 <link href="$it.url.full$"/>
41 <published>$it.date.rfc3339$</published>
42 <updated>$it.last_update.rfc3339$</updated>
43 <content type="html"><![CDATA[$it.content$]]></content>
44 </entry>
45 $endfor$
46</feed> 28</feed>