diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-09-13 20:34:24 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-09-13 20:34:24 +0200 |
commit | af23cdca9c9c230ffbffbab96f9600a78c76b75f (patch) | |
tree | 295143582c22fbac26978fc12f027ca497493fb8 /docs/content/en/templates/shortcode-templates.md | |
parent | ab5ce59894520a796ca658ef0385c65c2fa45f99 (diff) | |
parent | 90ad8045056167004d27857a95542936657b8a16 (diff) | |
download | hugo-af23cdca9c9c230ffbffbab96f9600a78c76b75f.tar.gz hugo-af23cdca9c9c230ffbffbab96f9600a78c76b75f.zip |
Merge commit '90ad8045056167004d27857a95542936657b8a16'
Diffstat (limited to 'docs/content/en/templates/shortcode-templates.md')
-rw-r--r-- | docs/content/en/templates/shortcode-templates.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/en/templates/shortcode-templates.md b/docs/content/en/templates/shortcode-templates.md index 487037bf0..839032800 100644 --- a/docs/content/en/templates/shortcode-templates.md +++ b/docs/content/en/templates/shortcode-templates.md @@ -303,7 +303,7 @@ The rendered output of the HTML example code block will be as follows: ### Nested Shortcode: Image Gallery -Hugo's [`.Parent` shortcode variable][parent] returns a boolean value depending on whether the shortcode in question is called within the context of a *parent* shortcode. This provides an inheritance model for common shortcode parameters. +Hugo's [`.Parent` shortcode variable][parent] provides access to the parent shortcode context when the shortcode in question is called within the context of a *parent* shortcode. This provides an inheritance model for common shortcode parameters. The following example is contrived but demonstrates the concept. Assume you have a `gallery` shortcode that expects one named `class` parameter: |