Filter data files

Basically I want to ask the same question that was asked, but not answered, in this thread:

what’s the best way to

{{ range firstname, lastname where .Params.parent eq true }}

Thanks

Without seeing your front matter I would just be guessing.

With this front matter:

title: Something
params:
  people:
    - firstname: John
      lastname: Doe
      parent: true
    - firstname: Robert
      lastname: Smith

You can list “parents” with:

{{ range where .Params.people "parent" true }}
  Firstname = {{ .firstname }}
  Lastname = {{ .lastname }}
{{ end }}

Thank you Joe!