mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 22:17:28 +00:00
Update shortcode-templates.md to correct an error.
This commit is contained in:
1 parent
ed48563aa2
commit
aab04f2692
1 file changed
+1
-1
@@ -303,7 +303,7 @@ The rendered output of the HTML example code block will be as follows:
|
|||||||
|
|
||||||
### Nested Shortcode: Image Gallery
|
### 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:
|
The following example is contrived but demonstrates the concept. Assume you have a `gallery` shortcode that expects one named `class` parameter:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user