add separate template variable for tag page and sanitize displayed tag name
parent
167964b686
commit
8cde2365e4
|
@ -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();
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
## Pages tagged <TMPL_VAR TAG> ##
|
||||
## Pages tagged <TMPL_VAR TAGNAME> ##
|
||||
|
||||
[[!inline pages="tagged(<TMPL_VAR TAG>)" actions="no" archive="yes"]]
|
||||
|
|
Loading…
Reference in New Issue