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.
master
Joey Hess 2010-05-05 18:12:27 -04:00
parent 34afaf1015
commit 8aa5f2d23e
1 changed files with 2 additions and 0 deletions

View File

@ -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},
);