From 399904959efe8e33c9e51e972ffb12d9bf7aa55a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 25 Jun 2021 11:02:22 +0200 Subject: [PATCH] Update shortcode-templates.md --- content/en/templates/shortcode-templates.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/content/en/templates/shortcode-templates.md b/content/en/templates/shortcode-templates.md index 19ec6dea9..14add6f77 100644 --- a/content/en/templates/shortcode-templates.md +++ b/content/en/templates/shortcode-templates.md @@ -102,7 +102,9 @@ most helpful when the condition depends on either of the values, or both: If a closing shortcode is used, the `.Inner` variable will be populated with all of the content between the opening and closing shortcodes. If a closing shortcode is required, you can check the length of `.Inner` as an indicator of its existence. -A shortcode with content declared via the `.Inner` variable can also be declared without the inline content and without the closing shortcode by using the self-closing syntax: +A shortcode with content declared via the `.Inner` variable can also be declared without the +content and without the closing +by using the self-closing syntax: ``` {{}} @@ -367,6 +369,8 @@ More shortcode examples can be found in the [shortcodes directory for spf13.com] ## Inline Shortcodes +{{< new-in "0.52.0" >}} + Since Hugo 0.52, you can implement your shortcodes inline -- e.g. where you use them in the content file. This can be useful for scripting that you only need in one place. This feature is disabled by default, but can be enabled in your site config: