- <link>$blosxom::url</link>
- <description>$blosxom::blog_description</description>
- <dc:date>\$lastmodified2::latest_iso8601</dc:date>
- <dc:language>$blosxom::blog_language</dc:language>
- <dc:creator>mailto:$rss20::author_email</dc:creator>
- <dc:rights>$rss20::copyright</dc:rights>
- <admin:generatorAgent rdf:resource="$rss20::generator_url" />
- <admin:errorReportsTo rdf:resource="mailto:$rss20::error_email" />
- <atom:link href="$blosxom::url$ENV{PATH_INFO}" rel="self" type="application/rss+xml" />
+ <link>$blosxom::url/</link>
+HEAD
+
+ if ($blosxom::path_info) {
+ $blosxom::template{$flavour}{'head'} .=
+ ' ' x $channel_indent .
+ qq(<category>$blosxom::path_info</category>\n);
+ }
+ if ($blosxom::blog_description) {
+ $blosxom::template{$flavour}{'head'} .=
+ ' ' x $channel_indent .
+ qq(<description>$blosxom::blog_description</description>\n);
+ }
+ if ($rss20::author_email) {
+ $blosxom::template{$flavour}{'head'} .=
+ ' ' x $channel_indent .
+ qq(<managingEditor>$rss20::author_email</managingEditor>\n);
+ }
+ elsif ($rss20::author_name) {
+ $blosxom::template{$flavour}{'head'} .=
+ ' ' x $channel_indent .
+ qq(<dc:creator>$rss20::author_name</dc:creator>\n);
+ }
+ if ($rss20::webmaster_email) {
+ $blosxom::template{$flavour}{'head'} .=
+ ' ' x $channel_indent .
+ qq(<webMaster>$rss20::webmaster_email</webMaster>\n);
+ }
+ if ($rss20::copyright) {
+ $blosxom::template{$flavour}{'head'} .=
+ ' ' x $channel_indent .
+ qq(<copyright>$rss20::copyright</copyright>\n);
+ }
+ my $path_info = $blosxom::path_info_orig || "/$blosxom::path_info";
+ $blosxom::template{$flavour}{'head'} .= <<HEAD;
+ <pubDate>\$storydate::latest_rfc822</pubDate>
+ <language>$blosxom::blog_language</language>
+ <generator>$rss20::generator</generator>
+ <atom:link href="$blosxom::url$path_info" rel="self" type="application/rss+xml" />