X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/ffec6806087981420eaf83c8d83cc4523a46d0de..32eb73ee1d9584e3bb0a5a86c4e6ed7f7c3a954a:/IkiWiki/Plugin/haiku.pm

diff --git a/IkiWiki/Plugin/haiku.pm b/IkiWiki/Plugin/haiku.pm
index 5a062a276..7ce74696b 100644
--- a/IkiWiki/Plugin/haiku.pm
+++ b/IkiWiki/Plugin/haiku.pm
@@ -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.