Catch up rsspage to atompage. Validates.

master
Amitai Schlair 2013-02-22 12:54:16 -05:00
parent 59b597ec84
commit 4b6ea05ac8
2 changed files with 8 additions and 0 deletions

View File

@ -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 {

View File

@ -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>