Use add_autofile() in tag.pm
[ikiwiki.git] / IkiWiki / Plugin / tag.pm
index 6c43a053d3abde7709bed74b43c5ad47d48a2a0e..90833fd9c4315cbb7887f9e19c3f3851d76276df 100644 (file)
@@ -78,6 +78,8 @@ sub gentag ($) {
                my $template=template("autotag.tmpl");
                $template->param(tag => $tag);
                writefile($tagfile, $config{srcdir}, $template->output);
+
+               IkiWiki::add_autofile("$config{srcdir}/$tagfile");
        }
 }