From 348ffb04fa31ced1dad85c63143fbb55ca758548 Mon Sep 17 00:00:00 2001 From: bep Date: Mon, 2 Mar 2015 21:23:16 +0100 Subject: [PATCH] Allow the same shortcode to be used with or without inline content Fixes #934 --- content/extras/shortcodes.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/extras/shortcodes.md b/content/extras/shortcodes.md index ecb087082..79c6871cd 100644 --- a/content/extras/shortcodes.md +++ b/content/extras/shortcodes.md @@ -193,6 +193,10 @@ of the content between the opening and closing shortcodes. If a closing shortcode is required, you can check the length of `.Inner` and provide a warning to the user. +A shortcode with `.Inner` content can be used wihout the inline content, and without the closing shortcode, by using the self-closing syntax: + + {{}} + The variable `.Params` contains the list of parameters in case you need to do more complicated things than `.Get`. You can also use the variable `.Page` to access all the normal [Page Variables](/templates/variables/).