diff options
author | Joey Hess <joey@kitenet.net> | 2010-05-05 18:12:27 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-05-05 18:17:25 -0400 |
commit | 8aa5f2d23e3f6c88a22e19b41e7dac1df9d84a12 (patch) | |
tree | b69b8ffc1c17cc73caba75e485a6f8ae4cb8662f /IkiWiki | |
parent | 34afaf1015d58f1313a392e3f5f514d484dc7efa (diff) | |
download | ikiwiki-8aa5f2d23e3f6c88a22e19b41e7dac1df9d84a12.tar ikiwiki-8aa5f2d23e3f6c88a22e19b41e7dac1df9d84a12.tar.gz |
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.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Render.pm | 2 |
1 files changed, 2 insertions, 0 deletions
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}, ); |