inline plugin: if meta plugin is also enabled, and has collected a uuid for a page...
authorSimon McVittie <http://smcv.pseudorandom.co.uk/>
Fri, 11 Jul 2008 22:44:12 +0000 (23:44 +0100)
committerSimon McVittie <http://smcv.pseudorandom.co.uk/>
Fri, 11 Jul 2008 22:44:12 +0000 (23:44 +0100)
IkiWiki/Plugin/inline.pm

index 8890e5ed068c3b0dad86d8def01c7ce1016434c2..9a63ea1c95cd11f9fdaa89da7d3e97ae08b8d2df 100644 (file)
@@ -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")) {
                        my $file=$pagesources{$p};
                        my $type=pagetype($file);
                if ($itemtemplate->query(name => "enclosure")) {
                        my $file=$pagesources{$p};
                        my $type=pagetype($file);