Include subsection contents in main section

  1. Create a layout at layouts/books/list.html.
  2. To add content or front matter to your rendered page, you’ll need to create a content file at content/books/_index.md.
  3. You can use .Data.Pages, which will automatically pull from all the pages in that section.
  4. Use the where keyword to filter…
{{range where .Data.Pages ".Params.featured" true}}
{{ end }}

If not, try "Params.featured"…sorry, can’t test right now…