X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/bb93fccf0690344aa77f9538a508959a6de09847..dfcaec65c5adc0a6d135f502c251826854b1e189:/IkiWiki/Plugin/haiku.pm?ds=inline diff --git a/IkiWiki/Plugin/haiku.pm b/IkiWiki/Plugin/haiku.pm index fe68c6eec..7ce74696b 100644 --- a/IkiWiki/Plugin/haiku.pm +++ b/IkiWiki/Plugin/haiku.pm @@ -4,7 +4,7 @@ package IkiWiki::Plugin::haiku; use warnings; use strict; -use IkiWiki 2.00; +use IkiWiki 3.00; sub import { hook(type => "getsetup", id => "haiku", call => \&getsetup); @@ -16,6 +16,7 @@ sub getsetup { plugin => { safe => 1, rebuild => undef, + section => "widget", }, } @@ -24,7 +25,13 @@ sub preprocess (@) { my $haiku; eval q{use Coy}; - if ($@ || ! Coy->can("Coy::with_haiku")) { + if ($config{deterministic}) { + $haiku = "Coy changes often. + For deterministic builds + try this substitute. + ", + } + elsif ($@ || ! Coy->can("Coy::with_haiku")) { my @canned=( "The lack of a Coy: No darting, subtle haiku.