summaryrefslogtreecommitdiffstats
path: root/templates/feed.xml
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2020-12-29 21:05:48 +0100
committerVolpeon <git@volpeon.ink>2020-12-29 21:05:48 +0100
commit1bea0b7b1ecf0b04f724e2cda575df8bdbb70ad2 (patch)
treeb3f1f5dcc11fd235521fd443cb39251eb8532f17 /templates/feed.xml
parentImproved CSS classes for page content, added proper ref list macro, build scr... (diff)
downloadvolpeon.ink-1bea0b7b1ecf0b04f724e2cda575df8bdbb70ad2.tar.gz
volpeon.ink-1bea0b7b1ecf0b04f724e2cda575df8bdbb70ad2.tar.bz2
volpeon.ink-1bea0b7b1ecf0b04f724e2cda575df8bdbb70ad2.zip
Improved metadata generation, added ATOM feeds
Diffstat (limited to 'templates/feed.xml')
-rw-r--r--templates/feed.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/feed.xml b/templates/feed.xml
new file mode 100644
index 0000000..68d2fc4
--- /dev/null
+++ b/templates/feed.xml
@@ -0,0 +1,22 @@
1<?xml version="1.0" encoding="utf-8"?>
2<feed xmlns="http://www.w3.org/2005/Atom">
3 <title>$if(is_home)$$else$$title$ – $endif$$site.title$</title>
4 <link href="$feed.url.full$" rel="self"/>
5 <link href="$url.full$"/>
6 <updated>$feed.last_update.rfc3339$</updated>
7 <id>$url.full$</id>
8
9 $for(pages)$
10 $for(it.all)$
11 $if(it.date.rfc3339)$
12 <entry>
13 <id>$it.url.full$</id>
14 <title type="html"><![CDATA[$it.title$]]></title>
15 <link href="$it.url.full$"/>
16 <published>$it.date.rfc3339$</published>
17 <updated>$it.date.rfc3339$</updated>
18 </entry>
19 $endif$
20 $endfor$
21 $endfor$
22</feed>