aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorSimon McVittie <http://smcv.pseudorandom.co.uk/>2008-07-11 23:44:12 +0100
committerSimon McVittie <http://smcv.pseudorandom.co.uk/>2008-07-11 23:44:12 +0100
commite767f18867bbddb252bd53589676f29dfc75837e (patch)
tree08d5114355d111b600756b0b29265be492be7125 /IkiWiki
parent9b34b879e2825a1d8d0d930a01c35306891b823b (diff)
downloadikiwiki-e767f18867bbddb252bd53589676f29dfc75837e.tar
ikiwiki-e767f18867bbddb252bd53589676f29dfc75837e.tar.gz
inline plugin: if meta plugin is also enabled, and has collected a uuid for a page, then pass it into the rssitem/atomitem templates
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/inline.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index 8890e5ed0..9a63ea1c9 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -442,6 +442,13 @@ sub genfeed ($$$$@) { #{{{
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")) {
my $file=$pagesources{$p};
my $type=pagetype($file);