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