diff options
Diffstat (limited to 'templates/feed.xml')
-rw-r--r-- | templates/feed.xml | 22 |
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> | ||