From 5aca615227b2cd6638adcac5e61be09a58b6a47f Mon Sep 17 00:00:00 2001 From: zweistein Date: Sat, 7 Mar 2020 13:57:38 +0000 Subject: aktiv? --- ikiwiki/directive/more.mdwn | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ikiwiki/directive/more.mdwn diff --git a/ikiwiki/directive/more.mdwn b/ikiwiki/directive/more.mdwn new file mode 100644 index 00000000..ea5df847 --- /dev/null +++ b/ikiwiki/directive/more.mdwn @@ -0,0 +1,26 @@ +[[!if test="enabled(more)" + then="In diesem Wiki ist die Direktive: more **aktiviert**." + else="In diesem Wiki ist die Direktive: more **nicht aktiv**; falls dies gewünscht wird, den Admin benachrichtigen."]] + +--- +The `more` directive is supplied by the [[!iki plugins/more desc=more]] plugin. + +This directive provides a way to have a "more" link on a post in a blog, that +leads to the full version of the page. Use it like this: + + \[[!more linktext="click for more" text=""" + This is the rest of my post. Not intended for people catching up on + their blogs at 30,000 feet. Because I like to make things + difficult. + """]] + +If the `linktext` parameter is omitted it defaults to just "more". + +An optional `pages` parameter can be used to specify a +[[ikiwiki/PageSpec]], and then the "more" link will only be displayed +when the page is inlined into a page matching that PageSpec, and otherwise +the full content shown. + +Note that you can accomplish something similar using a [[toggle]] instead. + +[[!meta robots="noindex, follow"]] -- cgit v1.2.1