mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-25 15:58:53 +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:
committed by
GitHub
parent
4193f4445b
commit
83e8f21684
@@ -110,6 +110,11 @@ by using the self-closing syntax:
|
||||
{{</* innershortcode /*/>}}
|
||||
```
|
||||
|
||||
{{% warning %}}
|
||||
Any shortcode that refers to `.Inner` must be closed or self-closed.
|
||||
|
||||
{{% /warning %}}
|
||||
|
||||
#### `.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:
|
||||
|
||||
Reference in New Issue
Block a user