inline plugin: if meta plugin is also enabled, and has collected a uuid for a page, then pass it into the rssitem/atomitem templates
parent
9b34b879e2
commit
e767f18867
|
@ -442,6 +442,13 @@ sub genfeed ($$$$@) { #{{{
|
||||||
mdate_3339 => date_3339($pagemtime{$p}),
|
mdate_3339 => date_3339($pagemtime{$p}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (exists $pagestate{$p} &&
|
||||||
|
exists $pagestate{$p}{meta}{uuid}) {
|
||||||
|
my $atom_id = $pagestate{$p}{meta}{uuid};
|
||||||
|
|
||||||
|
$itemtemplate->param(uuid => $atom_id);
|
||||||
|
}
|
||||||
|
|
||||||
if ($itemtemplate->query(name => "enclosure")) {
|
if ($itemtemplate->query(name => "enclosure")) {
|
||||||
my $file=$pagesources{$p};
|
my $file=$pagesources{$p};
|
||||||
my $type=pagetype($file);
|
my $type=pagetype($file);
|
||||||
|
|
Loading…
Reference in New Issue