From 1b55d7879489a11ed37cb339f5f64bc2a362c721 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 11 Sep 2008 17:29:08 -0400 Subject: move example back to plugin --- doc/plugins/fortune.mdwn | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc') diff --git a/doc/plugins/fortune.mdwn b/doc/plugins/fortune.mdwn index 854d13364..9966f456d 100644 --- a/doc/plugins/fortune.mdwn +++ b/doc/plugins/fortune.mdwn @@ -3,3 +3,11 @@ This plugin implements the [[ikiwiki/directive/fortune]] [[ikiwiki/directive]]. This directive uses the `fortune` program to insert a fortune into the page. + +[[!if test="enabled(fortune)" then=""" +Here's a fortune for you: + +---- + +[[!fortune ]] +"""]] -- cgit v1.2.3