mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 14:17:43 +00:00
Clarify that a shortcode with .Inner must be closed (#1785)
* Clarify that a shortcode with .Inner must be closed Closes #1784 which provides the details. Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca> * Apply suggestions from code review Co-authored-by: Joe Mooring <joe@mooring.com> Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca> Co-authored-by: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> Co-authored-by: Joe Mooring <joe@mooring.com>
This commit is contained in:
1 file changed
+5
@@ -110,6 +110,11 @@ by using the self-closing syntax:
|
|||||||
{{</* innershortcode /*/>}}
|
{{</* innershortcode /*/>}}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{{% warning %}}
|
||||||
|
Any shortcode that refers to `.Inner` must be closed or self-closed.
|
||||||
|
|
||||||
|
{{% /warning %}}
|
||||||
|
|
||||||
#### `.Params`
|
#### `.Params`
|
||||||
|
|
||||||
The `.Params` variable in shortcodes contains the list parameters passed to shortcode for more complicated use cases. You can also access higher-scoped parameters with the following logic:
|
The `.Params` variable in shortcodes contains the list parameters passed to shortcode for more complicated use cases. You can also access higher-scoped parameters with the following logic:
|
||||||
|
|||||||
Reference in new issue
Block a user