move example back to plugin

master
Joey Hess 2008-09-11 17:29:08 -04:00
parent c3d77f9ce9
commit 1b55d78794
2 changed files with 9 additions and 9 deletions

View File

@ -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 ]]
"""]]

View File

@ -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 ]]
"""]]