summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-05-26 09:39:23 +0200
committerVolpeon <git@volpeon.ink>2021-05-26 09:39:23 +0200
commit011e38d0175f69c8f902bfbc5676384f8b756eaf (patch)
tree09af9e014decf4e3cb487dcde226056fa8f4be14 /templates
parentFeed: Skip entries without last_update (diff)
downloadvolpeon.ink-011e38d0175f69c8f902bfbc5676384f8b756eaf.tar.gz
volpeon.ink-011e38d0175f69c8f902bfbc5676384f8b756eaf.tar.bz2
volpeon.ink-011e38d0175f69c8f902bfbc5676384f8b756eaf.zip
Include content in ATOM feeds
Diffstat (limited to 'templates')
-rw-r--r--templates/feed.xml2
-rw-r--r--templates/feed_entry.xml5
2 files changed, 4 insertions, 3 deletions
diff --git a/templates/feed.xml b/templates/feed.xml
index 458202a..738b1ec 100644
--- a/templates/feed.xml
+++ b/templates/feed.xml
@@ -1,6 +1,6 @@
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(namespace.root.is_index)$$else$$title$ – $endif$$site.title$</title> 3 <title><![CDATA[$if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$]]></title>
4 <link href="$url.full$" rel="self"/> 4 <link href="$url.full$" rel="self"/>
5 <link href="$page.url.abs$"/> 5 <link href="$page.url.abs$"/>
6 <updated>$last_update.rfc3339$</updated> 6 <updated>$last_update.rfc3339$</updated>
diff --git a/templates/feed_entry.xml b/templates/feed_entry.xml
index c9d8af5..1c0302c 100644
--- a/templates/feed_entry.xml
+++ b/templates/feed_entry.xml
@@ -1,9 +1,10 @@
1$if(it.last_update)$ 1$if(it.last_update)$
2 <entry> 2 <entry>
3 <id>$it.url.full$</id> 3 <id>$it.url.full$</id>
4 <title>$it.title$</title> 4 <title><![CDATA[$it.title$]]></title>
5 <link rel="alternate" href="$it.url.abs$"/> 5 <link href="$it.url.abs$"/>
6 <updated>$it.last_update.rfc3339$</updated> 6 <updated>$it.last_update.rfc3339$</updated>
7 <content type="html"><![CDATA[$it.content$]]></content>
7 $if(it.author)$ 8 $if(it.author)$
8 $for(it.author)$ 9 $for(it.author)$
9 <author> 10 <author>