mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 09:48:56 -04:00
Modify inner variable shortcode-template explanation (#1985)
This commit is contained in:
parent
a54927a7f4
commit
d2e594cbcb
@ -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.
|
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
|
```go-html-template
|
||||||
{{</* innershortcode /*/>}}
|
{{</* innershortcode /*/>}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user