diff options
author | Joey Hess <joey@kitenet.net> | 2010-04-21 20:39:20 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-04-21 20:39:20 -0400 |
commit | d048e9c64aca24b8e064aaf1608862b50c427de2 (patch) | |
tree | 5c26287630b54989e3fa40d6ec2a1d7d19da4966 /IkiWiki | |
parent | 318134174f62a598ae77e2e50f53518fbd673a19 (diff) | |
download | ikiwiki-d048e9c64aca24b8e064aaf1608862b50c427de2.tar ikiwiki-d048e9c64aca24b8e064aaf1608862b50c427de2.tar.gz |
turn on tag_autocreate by default if tagbase is set
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/tag.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm index cd7ecc212..62f030f4e 100644 --- a/IkiWiki/Plugin/tag.pm +++ b/IkiWiki/Plugin/tag.pm @@ -36,7 +36,7 @@ sub getsetup () { }, tag_autocreate => { type => "boolean", - example => 0, + example => 1, description => "autocreate new tag pages?", safe => 1, rebuild => undef, @@ -67,7 +67,8 @@ sub htmllink_tag ($$$;@) { sub gentag ($) { my $tag=shift; - if ($config{tag_autocreate}) { + if ($config{tag_autocreate} || + ($config{tagbase} && ! defined $config{tag_autocreate})) { my $tagpage=taglink($tag); if ($tagpage=~/^\.\/(.*)/) { $tagpage=$1; |