From: Joey Hess Date: Wed, 5 May 2010 22:12:27 +0000 (-0400) Subject: add ISPAGE variable to page.tmpl X-Git-Tag: 3.20100515~98 X-Git-Url: http://git.tremily.us/?p=ikiwiki.git;a=commitdiff_plain;h=8aa5f2d23e3f6c88a22e19b41e7dac1df9d84a12;hp=34afaf1015d58f1313a392e3f5f514d484dc7efa add ISPAGE variable to page.tmpl Plugins will also be able to use this to tell if the template is being used to generate a wiki page, when misctemplate starts also using page.tmpl. --- diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index e5ba0079b..fc5d3953d 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -138,6 +138,7 @@ sub genpage ($$) { title => $page eq 'index' ? $config{wikiname} : pagetitle(basename($page)), + ispage => 1, wikiname => $config{wikiname}, content => $content, backlinks => $backlinks, @@ -145,6 +146,7 @@ sub genpage ($$) { mtime => displaytime($pagemtime{$page}), ctime => displaytime($pagectime{$page}, undef, 1), baseurl => baseurl($page), + have_footer => 1, html5 => $config{html5}, );