From 160326b46936d94bd60727112ad31e45360c9ee0 Mon Sep 17 00:00:00 2001 From: joey Date: Sat, 11 Aug 2007 23:15:08 +0000 Subject: [PATCH] * Apply a patch from NicolasLimare adding modification date tags to rss and atom feeds, and also changing the publication time for a feed to the newest modiciation time (was newest creation time). * The patch also adds dcterms:creator to rss items that have a known author. --- IkiWiki/Plugin/inline.pm | 8 +++++--- debian/changelog | 6 +++++- ...lished_and_updated_time_information_for_the_feeds.mdwn | 4 +++- templates/atomitem.tmpl | 3 ++- templates/rssitem.tmpl | 5 +++-- templates/rsspage.tmpl | 4 +++- 6 files changed, 21 insertions(+), 9 deletions(-) diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 5378cc939..fee3e06b7 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -361,8 +361,10 @@ sub genfeed ($$$$@) { #{{{ title => pagetitle(basename($p)), url => $u, permalink => $u, - date_822 => date_822($pagectime{$p}), - date_3339 => date_3339($pagectime{$p}), + cdate_822 => date_822($pagectime{$p}), + mdate_822 => date_822($pagemtime{$p}), + cdate_3339 => date_3339($pagectime{$p}), + mdate_3339 => date_3339($pagemtime{$p}), ); if ($itemtemplate->query(name => "enclosure")) { @@ -397,7 +399,7 @@ sub genfeed ($$$$@) { #{{{ $content.=$itemtemplate->output; $itemtemplate->clear_params; - $lasttime = $pagectime{$p} if $pagectime{$p} > $lasttime; + $lasttime = $pagemtime{$p} if $pagemtime{$p} > $lasttime; } my $template=template($feedtype."page.tmpl", blind_cache => 1); diff --git a/debian/changelog b/debian/changelog index f3afac013..470a3ece5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,8 +15,12 @@ ikiwiki (2.6) UNRELEASED; urgency=low * Updated French translation from Cyril Brulebois. Closes: #437181 * The toc directive doesn't work well or make sense inside an inlined page. Disable it when the page with the toc is nested inside another page. + * Apply a patch from NicolasLimare adding modification date tags to rss and + atom feeds, and also changing the publication time for a feed to the + newest modiciation time (was newest creation time). + * The patch also adds dcterms:creator to rss items that have a known author. - -- Joey Hess Sat, 11 Aug 2007 17:40:45 -0400 + -- Joey Hess Sat, 11 Aug 2007 18:25:28 -0400 ikiwiki (2.5) unstable; urgency=low diff --git a/doc/bugs/correct_published_and_updated_time_information_for_the_feeds.mdwn b/doc/bugs/correct_published_and_updated_time_information_for_the_feeds.mdwn index 645376786..082f0800c 100644 --- a/doc/bugs/correct_published_and_updated_time_information_for_the_feeds.mdwn +++ b/doc/bugs/correct_published_and_updated_time_information_for_the_feeds.mdwn @@ -108,4 +108,6 @@ Index: IkiWiki/Plugin/inline.pm >> — [[NicolasLimare]] -[[tag patch]] \ No newline at end of file +[[done]] --[[Joey]] + +[[tag patch]] diff --git a/templates/atomitem.tmpl b/templates/atomitem.tmpl index 9190fcc84..4dc2d07d6 100644 --- a/templates/atomitem.tmpl +++ b/templates/atomitem.tmpl @@ -11,7 +11,8 @@ - + + diff --git a/templates/rssitem.tmpl b/templates/rssitem.tmpl index c243b74b3..f22e5e3fb 100644 --- a/templates/rssitem.tmpl +++ b/templates/rssitem.tmpl @@ -1,7 +1,7 @@ <TMPL_VAR AUTHOR ESCAPE=HTML>: <TMPL_VAR TITLE> - + <TMPL_VAR TITLE> @@ -12,7 +12,8 @@ - + + diff --git a/templates/rsspage.tmpl b/templates/rsspage.tmpl index 34c1a33ce..e54094aaa 100644 --- a/templates/rsspage.tmpl +++ b/templates/rsspage.tmpl @@ -1,5 +1,7 @@ - + <TMPL_VAR TITLE> -- 2.39.5