From 8aa5f2d23e3f6c88a22e19b41e7dac1df9d84a12 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 5 May 2010 18:12:27 -0400 Subject: [PATCH] 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. --- IkiWiki/Render.pm | 2 ++ 1 file changed, 2 insertions(+) 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}, ); -- 2.26.2