summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-05-28 17:25:42 +0200
committerVolpeon <git@volpeon.ink>2021-05-28 17:25:42 +0200
commita8dca52ab169e7baa18d1fba9ab1cff2b2e820fc (patch)
treefaeb4c42f84c01a05bd3a324113fe85f5c3f3477
parentBetter post date color in dark mode (diff)
downloadvolpeon.ink-a8dca52ab169e7baa18d1fba9ab1cff2b2e820fc.tar.gz
volpeon.ink-a8dca52ab169e7baa18d1fba9ab1cff2b2e820fc.tar.bz2
volpeon.ink-a8dca52ab169e7baa18d1fba9ab1cff2b2e820fc.zip
Use full URLs everywhere in ATOM feed
-rw-r--r--templates/feed.xml2
-rw-r--r--templates/feed_entry.xml10
2 files changed, 6 insertions, 6 deletions
diff --git a/templates/feed.xml b/templates/feed.xml
index 738b1ec..d03b73f 100644
--- a/templates/feed.xml
+++ b/templates/feed.xml
@@ -2,7 +2,7 @@
2<feed xmlns="http://www.w3.org/2005/Atom"> 2<feed xmlns="http://www.w3.org/2005/Atom">
3 <title><![CDATA[$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.full$"/>
6 <updated>$last_update.rfc3339$</updated> 6 <updated>$last_update.rfc3339$</updated>
7 <id>$url.full$</id> 7 <id>$url.full$</id>
8 $for(author)$ 8 $for(author)$
diff --git a/templates/feed_entry.xml b/templates/feed_entry.xml
index 1c0302c..410a257 100644
--- a/templates/feed_entry.xml
+++ b/templates/feed_entry.xml
@@ -2,9 +2,11 @@ $if(it.last_update)$
2 <entry> 2 <entry>
3 <id>$it.url.full$</id> 3 <id>$it.url.full$</id>
4 <title><![CDATA[$it.title$]]></title> 4 <title><![CDATA[$it.title$]]></title>
5 <link href="$it.url.abs$"/> 5 <link href="$it.url.full$"/>
6 $if(it.date)$
7 <published>$it.date.rfc3339$</published>
8 $endif$
6 <updated>$it.last_update.rfc3339$</updated> 9 <updated>$it.last_update.rfc3339$</updated>
7 <content type="html"><![CDATA[$it.content$]]></content>
8 $if(it.author)$ 10 $if(it.author)$
9 $for(it.author)$ 11 $for(it.author)$
10 <author> 12 <author>
@@ -24,8 +26,6 @@ $if(it.last_update)$
24 </author> 26 </author>
25 $endfor$ 27 $endfor$
26 $endif$ 28 $endif$
27 $if(it.date)$ 29 <content type="html"><![CDATA[$it.content$]]></content>
28 <published>$it.date.rfc3339$</published>
29 $endif$
30 </entry> 30 </entry>
31$endif$ 31$endif$