add separate template variable for tag page and sanitize displayed tag name

master
Joey Hess 2010-04-21 19:09:59 -04:00
parent 167964b686
commit 8cde2365e4
2 changed files with 3 additions and 2 deletions

View File

@ -83,7 +83,8 @@ sub gentag ($) {
debug($message);
my $template=template("autotag.tmpl");
$template->param(tag => $tag);
$template->param(tag => IkiWiki::basename($tag));
$template->param(tagpage => $tagpage);
writefile($tagfile, $config{srcdir}, $template->output);
if ($config{rcs}) {
IkiWiki::disable_commit_hook();

View File

@ -1,3 +1,3 @@
## Pages tagged <TMPL_VAR TAG> ##
## Pages tagged <TMPL_VAR TAGNAME> ##
[[!inline pages="tagged(<TMPL_VAR TAG>)" actions="no" archive="yes"]]