aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/parentlinks.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/parentlinks.pm')
-rw-r--r--IkiWiki/Plugin/parentlinks.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/parentlinks.pm b/IkiWiki/Plugin/parentlinks.pm
index 890a349b5..4525145d6 100644
--- a/IkiWiki/Plugin/parentlinks.pm
+++ b/IkiWiki/Plugin/parentlinks.pm
@@ -7,9 +7,18 @@ use strict;
use IkiWiki 2.00;
sub import { #{{{
+ hook(type => "parentlinks", id => "parentlinks", call => \&parentlinks);
hook(type => "pagetemplate", id => "parentlinks", call => \&pagetemplate);
} # }}}
+sub getsetup () { #{{{
+ return
+ plugin => {
+ safe => 1,
+ rebuild => 1,
+ },
+} #}}}
+
sub parentlinks ($) { #{{{
my $page=shift;