aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-04-17 15:40:39 -0400
committerJoey Hess <joey@kitenet.net>2010-04-17 15:41:45 -0400
commitadc196a8b53c0b0b4f9ec4cbcea85ba37e421b59 (patch)
treeab7e7ab91bc890f842d77112f696616a2dbe91ae /IkiWiki
parentca02c57ee47d4c05946c0c34eee32a0ad4ec6b01 (diff)
downloadikiwiki-adc196a8b53c0b0b4f9ec4cbcea85ba37e421b59.tar
ikiwiki-adc196a8b53c0b0b4f9ec4cbcea85ba37e421b59.tar.gz
tag_autocreate fixups
Fix style of prompt. Optional to rebuild when it is changed. (Needed to get new all missing tags)
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/tag.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm
index 7a918a4e8..1145a9f13 100644
--- a/IkiWiki/Plugin/tag.pm
+++ b/IkiWiki/Plugin/tag.pm
@@ -37,9 +37,9 @@ sub getsetup () {
tag_autocreate => {
type => "boolean",
example => 0,
- description => "Autocreate new tag pages",
+ description => "autocreate new tag pages?",
safe => 1,
- rebuild => 1,
+ rebuild => undef,
},
}
@@ -66,7 +66,7 @@ sub taglink ($$$;@) {
sub gentag ($) {
my $tag=shift;
- if (defined $config{tag_autocreate} && $config{tag_autocreate}) {
+ if ($config{tag_autocreate}) {
my $tagfile = newpagefile(tagpage($tag), $config{default_pageext});
$tagfile=~s/^\///;