* Fix missing categories in rss/atom feeds.

master
joey 2007-01-14 20:14:36 +00:00
parent 36597f4b04
commit e1c0576029
3 changed files with 11 additions and 3 deletions

View File

@ -63,8 +63,8 @@ sub pagetemplate (@) { #{{{
}, @{$tags{$page}}
]) if exists $tags{$page} && @{$tags{$page}} && $template->query(name => "tags");
if ($template->query(name => "pubdate")) {
# It's an rss template. Add any categories.
if ($template->query(name => "categories")) {
# It's an rss/atom template. Add any categories.
if (exists $tags{$page} && @{$tags{$page}}) {
$template->param(categories => [map { category => $_ }, @{$tags{$page}}]);
}

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
ikiwiki (1.40) UNRELEASED; urgency=low
* Fix missing categories in rss/atom feeds.
-- Joey Hess <joeyh@debian.org> Sun, 14 Jan 2007 15:09:49 -0500
ikiwiki (1.39) unstable; urgency=low
* Add a rawhtml plugin that allows copying raw html files from the srcdir.

View File

@ -2,4 +2,6 @@ RSS and Atom feeds don't have any categories listed in them, even though the
templates have a loop for the categories (I'm assuming that it's the tags
that it's supposed to be looping through?).
The tags are showing up as expected in the HTML output, just not any feeds.
The tags are showing up as expected in the HTML output, just not any feeds.
> Yurk! [[bugs/done]] --[[Joey]]