aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2016-01-21 07:53:39 +0000
committerSimon McVittie <smcv@debian.org>2016-01-21 07:53:39 +0000
commitc224367a195a699e9891cd3746a5936ece2af81b (patch)
tree6e5490c830905b6a6091ea882d8904b29b1deacb /templates
parent855b757f37af9af00be77b1f668270a8a8c3db11 (diff)
downloadikiwiki-c224367a195a699e9891cd3746a5936ece2af81b.tar
ikiwiki-c224367a195a699e9891cd3746a5936ece2af81b.tar.gz
Add an atom:link rel="self" to RSS feeds
As recommended by <https://validator.w3.org/feed/docs/warning/MissingAtomSelfLink.html>
Diffstat (limited to 'templates')
-rw-r--r--templates/rsspage.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/rsspage.tmpl b/templates/rsspage.tmpl
index 45265f265..d07ecefc3 100644
--- a/templates/rsspage.tmpl
+++ b/templates/rsspage.tmpl
@@ -1,10 +1,12 @@
<?xml version="1.0"?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:dcterms="http://purl.org/dc/terms/" >
+ xmlns:dcterms="http://purl.org/dc/terms/"
+ xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title><TMPL_VAR TITLE></title>
<link><TMPL_VAR PAGEURL></link>
+<atom:link href="<TMPL_VAR FEEDURL>" rel="self" type="application/rss+xml"/>
<TMPL_IF COPYRIGHT>
<copyright><TMPL_VAR COPYRIGHT ESCAPE=HTML></copyright>
</TMPL_IF>