mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-03 07:13:11 +00:00
Modify inner variable shortcode-template explanation (#1985)
This commit is contained in:
1 parent
a54927a7f4
commit
d2e594cbcb
1 file changed
+1
-1
@@ -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