the issue is that HTML::Template doesn't expand top-level variables when inside
a loop
else {
$_->{link} = IkiWiki::pagetitle($_->{page});
}
+ $_->{baseurl}="$config{url}/" if length $config{url};
+
$_;
} @{$change->{pages}}
];
commitdate => displaytime($change->{when}, "%X %x"),
wikiname => $config{wikiname},
);
- $template->param(baseurl => "$config{url}/") if length $config{url};
IkiWiki::run_hooks(pagetemplate => sub {
shift->(page => $page, destpage => $page, template => $template);
});