aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/calendar.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-25 18:05:55 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-25 18:05:55 -0400
commit1f8b0460c309c54cfbfe4152bbc195a1756cbda5 (patch)
treea8a032052a49e318afcbcea7795c4342f83a72a5 /IkiWiki/Plugin/calendar.pm
parentcf6c2f142fdcba4316f616bad5aaa88c6df6031e (diff)
downloadikiwiki-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.pm12
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));