From: Joey Hess Date: Thu, 11 Sep 2008 21:29:08 +0000 (-0400) Subject: move example back to plugin X-Git-Tag: 2.64~66 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/1b55d7879489a11ed37cb339f5f64bc2a362c721 move example back to plugin --- 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 ]] +"""]] diff --git a/underlays/basewiki/directive/fortune.mdwn b/underlays/basewiki/directive/fortune.mdwn index 36e0b5733..8d07be5df 100644 --- a/underlays/basewiki/directive/fortune.mdwn +++ b/underlays/basewiki/directive/fortune.mdwn @@ -1,14 +1,6 @@ The `fortune` directive is supplied by the [[!iki plugins/fortune]] plugin. -This just uses the `fortune` program to insert a fortune into the page. +This just uses the `fortune` program to insert a fortune cookie into the page. Usage: \[[!fortune ]] - -[[!if test="enabled(fortune)" then=""" -Here's a fortune for you: - ----- - -[[!fortune ]] -"""]]