]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/inline.pm
Show author in addition to feedname, if different.
[git.ikiwiki.info.git] / IkiWiki / Plugin / inline.pm
index 9b4cee4e42ab7c37c21cd69a3837f3a66b59ba74..455ac3ad55f4d468c80e5234816ba599f3527a33 100644 (file)
@@ -672,11 +672,7 @@ sub genfeed ($$$$$@) {
 
                        if (exists $pagestate{$p}{meta}{enclosure}) {
                                my $absurl = $pagestate{$p}{meta}{enclosure};
-
-                               # XXX better way to compute relative to srcdir?
-                               my $file = $absurl;
-                               $file =~ s|^$config{url}/||;
-
+                               my $file = $pagestate{$p}{meta}{enclosurefile};
                                genenclosure($itemtemplate, $absurl, $file);
                                $fancy_enclosure_seen = 1;
                        }
@@ -710,6 +706,7 @@ sub genfeed ($$$$$@) {
                feeddesc => $feeddesc,
                guid => $guid,
                feeddate => date_3339($lasttime),
+               feeddate_822 => date_822($lasttime),
                feedurl => $feedurl,
        );
        run_hooks(pagetemplate => sub {