aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2013-02-22 12:54:16 -0500
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2013-02-22 12:54:16 -0500
commit4b6ea05ac87f5085e4df5c2ebc3d1a17a6cd2397 (patch)
treed98bf2be1471e8e49d872d463b1d131ec8942b38
parent59b597ec84bd9b8fb5bb33deb8464b86b812c300 (diff)
downloadikiwiki-4b6ea05ac87f5085e4df5c2ebc3d1a17a6cd2397.tar
ikiwiki-4b6ea05ac87f5085e4df5c2ebc3d1a17a6cd2397.tar.gz
Catch up rsspage to atompage. Validates.
-rw-r--r--IkiWiki/Plugin/inline.pm1
-rw-r--r--templates/rsspage.tmpl7
2 files changed, 8 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index 9b4cee4e4..e313eb775 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -710,6 +710,7 @@ sub genfeed ($$$$$@) {
feeddesc => $feeddesc,
guid => $guid,
feeddate => date_3339($lasttime),
+ feeddate_822 => date_822($lasttime),
feedurl => $feedurl,
);
run_hooks(pagetemplate => sub {
diff --git a/templates/rsspage.tmpl b/templates/rsspage.tmpl
index e54094aaa..fec6775c2 100644
--- a/templates/rsspage.tmpl
+++ b/templates/rsspage.tmpl
@@ -1,11 +1,18 @@
<?xml version="1.0"?>
<rss version="2.0"
+ xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dcterms="http://purl.org/dc/terms/" >
<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>
<description><TMPL_VAR FEEDDESC ESCAPE=HTML></description>
+<generator>ikiwiki</generator>
+<pubDate><TMPL_VAR FEEDDATE_822></pubDate>
<TMPL_VAR CONTENT>
</channel>
</rss>