Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
po(otherlanguagesloop): start factorizing
[git.ikiwiki.info.git]
/
IkiWiki
/
Plugin
/
sidebar.pm
diff --git
a/IkiWiki/Plugin/sidebar.pm
b/IkiWiki/Plugin/sidebar.pm
index 7c2e6e1f680a28561cf0282f0ff631afd76b034b..9697e1198d24db690cec373e9980516e077ad936 100644
(file)
--- a/
IkiWiki/Plugin/sidebar.pm
+++ b/
IkiWiki/Plugin/sidebar.pm
@@
-9,9
+9,18
@@
use strict;
use IkiWiki 2.00;
sub import { #{{{
use IkiWiki 2.00;
sub import { #{{{
+ hook(type => "getsetup", id => "sidebar", call => \&getsetup);
hook(type => "pagetemplate", id => "sidebar", call => \&pagetemplate);
} # }}}
hook(type => "pagetemplate", id => "sidebar", call => \&pagetemplate);
} # }}}
+sub getsetup () { #{{{
+ return
+ plugin => {
+ safe => 1,
+ rebuild => 1,
+ },
+} #}}}
+
sub sidebar_content ($) { #{{{
my $page=shift;
sub sidebar_content ($) { #{{{
my $page=shift;