diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-25 18:05:55 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-25 18:05:55 -0400 |
commit | 1f8b0460c309c54cfbfe4152bbc195a1756cbda5 (patch) | |
tree | a8a032052a49e318afcbcea7795c4342f83a72a5 /IkiWiki/Plugin/calendar.pm | |
parent | cf6c2f142fdcba4316f616bad5aaa88c6df6031e (diff) | |
download | ikiwiki-1f8b0460c309c54cfbfe4152bbc195a1756cbda5.tar ikiwiki-1f8b0460c309c54cfbfe4152bbc195a1756cbda5.tar.gz |
added getsetup hooks for all plugins up to recentchanges
Diffstat (limited to 'IkiWiki/Plugin/calendar.pm')
-rw-r--r-- | IkiWiki/Plugin/calendar.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/calendar.pm b/IkiWiki/Plugin/calendar.pm index aed087eed..b808c9d1d 100644 --- a/IkiWiki/Plugin/calendar.pm +++ b/IkiWiki/Plugin/calendar.pm @@ -30,10 +30,22 @@ my $time=time; my @now=localtime($time); sub import { #{{{ + hook(type => "getsetup", id => "version", call => \&getsetup); hook(type => "needsbuild", id => "version", call => \&needsbuild); hook(type => "preprocess", id => "calendar", call => \&preprocess); } #}}} +sub getsetup () { #{{{ + return + archivebase => { + type => "string", + default => "archives", + description => "base of the archives hierarchy", + safe => 1, + rebuild => 1, + }, +} #}}} + sub is_leap_year (@) { #{{{ my %params=@_; return ($params{year} % 4 == 0 && (($params{year} % 100 != 0) || $params{year} % 400 == 0)); |