mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-12 19:24:54 -04:00
Update build-options.md
This commit is contained in:
parent
5d910e24d2
commit
2d9da3a563
@ -95,18 +95,15 @@ Website needs to showcase a few of the hundred "testimonials" available as conte
|
|||||||
|
|
||||||
To avoid setting the build options on every testimonials, one can use [`cascade`]({{< relref "/content-management/front-matter#front-matter-cascade" >}}) on the testimonial section's content file.
|
To avoid setting the build options on every testimonials, one can use [`cascade`]({{< relref "/content-management/front-matter#front-matter-cascade" >}}) on the testimonial section's content file.
|
||||||
|
|
||||||
```yaml
|
{{< code-toggle >}}
|
||||||
#content/testimonials/_index.md
|
|
||||||
title: Testimonials
|
title: Testimonials
|
||||||
# section build options:
|
|
||||||
_build:
|
_build:
|
||||||
render: true
|
render: true
|
||||||
# children build options with cascade
|
|
||||||
cascade:
|
cascade:
|
||||||
_build:
|
_build:
|
||||||
render: false
|
render: false
|
||||||
list: true # default
|
list: true # default
|
||||||
```
|
{{< /code-toggle >}}
|
||||||
|
|
||||||
```go-html-template
|
```go-html-template
|
||||||
{{/* layouts/_defaults/testimonials.html */}}
|
{{/* layouts/_defaults/testimonials.html */}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user