mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
Modify inner variable shortcode-template explanation (#1985)
This commit is contained in:
@@ -102,7 +102,7 @@ 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 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 content and without the closing 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 tag by using the self-closing syntax:
|
||||
|
||||
```go-html-template
|
||||
{{</* innershortcode /*/>}}
|
||||
|
||||
Reference in New Issue
Block a user