]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/haiku.pm
Add modified opengraph plugin.
[git.ikiwiki.info.git] / IkiWiki / Plugin / haiku.pm
index fe68c6eecb039edfbac1776d4b5e1b8f23b0ccd5..7ce74696ba474aa3e4a75d12f7a2cf3eb49b02cf 100644 (file)
@@ -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.