-use IkiWiki;
-
-sub import { #{{{
- IkiWiki::hook(type => "pagetemplate", id => "sidebar",
- call => \&pagetemplate);
-} # }}}
-
-sub sidebar_content ($) { #{{{
+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 ($) {