mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 08:18:30 +00:00
Wrap cascade ex in code toggle
This commit is contained in:
1 parent
841573e3eb
commit
2a0ea423d7
1 file changed
+5
-3
@@ -160,12 +160,14 @@ show_comments: false
|
|||||||
Any node or section can pass down to descendents a set of Front Matter values as long as defined underneath the reserved `cascade` Front Matter key.
|
Any node or section can pass down to descendents a set of Front Matter values as long as defined underneath the reserved `cascade` Front Matter key.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```yaml
|
|
||||||
# content/blog/_index.md
|
In `content/blog/_index.md`
|
||||||
|
|
||||||
|
{{< code-toggle copy="false" >}}
|
||||||
title: Blog
|
title: Blog
|
||||||
cascade:
|
cascade:
|
||||||
banner: images/typewriter.jpg
|
banner: images/typewriter.jpg
|
||||||
```
|
{{</ code-toggle >}}
|
||||||
|
|
||||||
With the above example the Blog section page and its descendents will return `images/typewriter.jpg` when `.Params.banner` is invoked unless:
|
With the above example the Blog section page and its descendents will return `images/typewriter.jpg` when `.Params.banner` is invoked unless:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user