summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/ddate.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/ddate.pm')
-rw-r--r--IkiWiki/Plugin/ddate.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/ddate.pm b/IkiWiki/Plugin/ddate.pm
index d081cb509..2ec122833 100644
--- a/IkiWiki/Plugin/ddate.pm
+++ b/IkiWiki/Plugin/ddate.pm
@@ -6,9 +6,18 @@ use IkiWiki 2.00;
no warnings;
sub import { #{{{
+ hook(type => "getsetup", id => "ddate", call => \&getsetup);
hook(type => "checkconfig", id => "ddate", call => \&checkconfig);
} # }}}
+sub getsetup { #{{{
+ return
+ plugin => {
+ safe => 1,
+ rebuild => 1,
+ },
+} #}}}
+
sub checkconfig () { #{{{
if (! defined $config{timeformat} ||
$config{timeformat} eq '%c') {