summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-04-17 15:48:00 -0400
committerJoey Hess <joey@kitenet.net>2010-04-17 15:48:00 -0400
commitb00d8771cc212349ca886401bc68facdf08e0d3c (patch)
tree94d3271b2c60e13eae248d4c1ed99f6bda1b21e4 /IkiWiki/Plugin
parent3651e6263c55a0b6184fe46c856a96740621361f (diff)
call gentag for taglinks too
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/tag.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm
index 957b012ef..9f6df5fc4 100644
--- a/IkiWiki/Plugin/tag.pm
+++ b/IkiWiki/Plugin/tag.pm
@@ -45,7 +45,7 @@ sub getsetup () {
sub tagpage ($) {
my $tag=shift;
-
+
if ($tag !~ m{^\.?/} &&
defined $config{tagbase}) {
$tag="/".$config{tagbase}."/".$tag;
@@ -96,7 +96,6 @@ sub preprocess_tag (@) {
# hidden WikiLink
add_link($page, tagpage($tag), 'tag');
- # add tagpage if necessary
gentag($tag);
}
@@ -112,12 +111,14 @@ sub preprocess_taglink (@) {
if (/(.*)\|(.*)/) {
my $tag=linkpage($2);
add_link($params{page}, tagpage($tag), 'tag');
+ gentag($tag);
return taglink($params{page}, $params{destpage}, $tag,
linktext => pagetitle($1));
}
else {
my $tag=linkpage($_);
add_link($params{page}, tagpage($tag), 'tag');
+ gentag($tag);
return taglink($params{page}, $params{destpage}, $tag);
}
}