X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/970373548fda77223ebbeb6aadbdbe4884b67cef..7f64ff2ae0e2f2769cf0d0c0c9bc4b370a94b0b7:/IkiWiki.pm diff --git a/IkiWiki.pm b/IkiWiki.pm index c428de77f..ee1ecb58f 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1401,10 +1401,6 @@ sub filter ($$$) { return $content; } -sub indexlink () { - return "$config{wikiname}"; -} - sub check_canedit ($$$;$) { my $page=shift; my $q=shift; @@ -1742,21 +1738,25 @@ sub template ($;@) { sub misctemplate ($$;@) { my $title=shift; - my $pagebody=shift; + my $content=shift; - my $template=template("misc.tmpl"); + my $template=template("page.tmpl"); + + run_hooks(pagetemplate => sub { + shift->(page => "", destpage => "", template => $template); + }); + $template->param( + dynamic => 1, + have_actions => 0, # force off title => $title, - indexlink => indexlink(), wikiname => $config{wikiname}, - pagebody => $pagebody, + content => $content, baseurl => baseurl(), html5 => $config{html5}, @_, ); - run_hooks(pagetemplate => sub { - shift->(page => "", destpage => "", template => $template); - }); + return $template->output; }