Listing pages without publishing them using build options and cascade

Looking through the docs I found this example:

#content/testimonials/_index.md
title: Testimonials
# section build options:
_build:
  render: true
# children build options with cascade
cascade:
  _build:
    render: false
    list: true # default

I’m trying to replicate this using toml:

+++
title = "Testimonials"
[_build]
  render = true
[[cascade]]
  [_build]
    render = false
    list =  true
+++

But I get the following error message: Key '_build' has already been defined.

In the docs example, _build is also defined twice. What am I doing wrong?

Try:

[cascade._build]
4 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.