diff options
author | Joey Hess <joey@kitenet.net> | 2010-04-21 19:09:59 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-04-21 19:13:03 -0400 |
commit | 8cde2365e43f1c96432dcedb378be55d2308dd08 (patch) | |
tree | d5fd01c9dca5154bb4ac36a49509107dc0e15afc /IkiWiki | |
parent | 167964b68661de57983993efd7261a75da661665 (diff) |
add separate template variable for tag page and sanitize displayed tag name
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/tag.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm index c98dd80b2..6a6517671 100644 --- a/IkiWiki/Plugin/tag.pm +++ b/IkiWiki/Plugin/tag.pm @@ -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(); |