summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-11-21 11:09:53 +0100
committerVolpeon <git@volpeon.ink>2021-11-21 11:09:53 +0100
commit09a389abc83f06c52301108307b1bb566523c276 (patch)
treeb1831b0e4150fe3a02725a4a7f9f28a7026a4bf4 /templates
parentAdd arrow to list category title (diff)
downloadvolpeon.ink-09a389abc83f06c52301108307b1bb566523c276.tar.gz
volpeon.ink-09a389abc83f06c52301108307b1bb566523c276.tar.bz2
volpeon.ink-09a389abc83f06c52301108307b1bb566523c276.zip
Add category info to ATOM feeds
Diffstat (limited to 'templates')
-rw-r--r--templates/feed.xml17
-rw-r--r--templates/feed_entry.xml52
2 files changed, 40 insertions, 29 deletions
diff --git a/templates/feed.xml b/templates/feed.xml
index cf9e359..915c000 100644
--- a/templates/feed.xml
+++ b/templates/feed.xml
@@ -16,9 +16,22 @@
16 16
17 $if(layout.is_categorized_list)$ 17 $if(layout.is_categorized_list)$
18 $for(pages.date_desc)$ 18 $for(pages.date_desc)$
19 $it.pages.date_desc:feed_entry()$ 19 $for(it.pages.date_desc)$
20 $if(it.url)$
21 <entry>
22 <category term="$pages.date_desc.namespace.full$" label="$pages.date_desc.title$"/>
23 $it:feed_entry()$
24 </entry>
25 $endif$
26 $endfor$
20 $endfor$ 27 $endfor$
21 $else$ 28 $else$
22 $pages.date_desc:feed_entry()$ 29 $for(pages.date_desc)$
30 $if(it.url)$
31 <entry>
32 $it:feed_entry()$
33 </entry>
34 $endif$
35 $endfor$
23 $endif$ 36 $endif$
24</feed> 37</feed>
diff --git a/templates/feed_entry.xml b/templates/feed_entry.xml
index f8108f6..03d6569 100644
--- a/templates/feed_entry.xml
+++ b/templates/feed_entry.xml
@@ -1,27 +1,25 @@
1<entry> 1<id>$it.url.full$</id>
2 <id>$it.url.full$</id> 2<title><![CDATA[$it.title$]]></title>
3 <title><![CDATA[$it.title$]]></title> 3<link href="$it.url.full$"/>
4 <link href="$it.url.full$"/> 4<published>$it.date.rfc3339$</published>
5 <published>$it.date.rfc3339$</published> 5<updated>$it.last_update.rfc3339$</updated>
6 <updated>$it.last_update.rfc3339$</updated> 6$if(it.author)$
7 $if(it.author)$ 7 $for(it.author)$
8 $for(it.author)$ 8 <author>
9 <author> 9 <name>$it.name$</name>
10 <name>$it.name$</name> 10 $if(it.email)$
11 $if(it.email)$ 11 <email>$it.email$</email>
12 <email>$it.email$</email> 12 $endif$
13 $endif$ 13 </author>
14 </author> 14 $endfor$
15 $endfor$ 15$else$
16 $else$ 16 $for(author)$
17 $for(author)$ 17 <author>
18 <author> 18 <name>$author.name$</name>
19 <name>$author.name$</name> 19 $if(author.email)$
20 $if(author.email)$ 20 <email>$author.email$</email>
21 <email>$author.email$</email> 21 $endif$
22 $endif$ 22 </author>
23 </author> 23 $endfor$
24 $endfor$ 24$endif$
25 $endif$ 25<content type="html"><![CDATA[$it.content$]]></content>
26 <content type="html"><![CDATA[$it.content$]]></content>
27</entry>