Update build-options.md

This commit is contained in:
Bjørn Erik Pedersen 2022-04-30 12:03:14 +02:00 committed by GitHub
parent 5d910e24d2
commit 2d9da3a563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 */}}