Hello,
I’m trying to generate a list of pages that belong to two categories. This is important for me since I plan to have subcategories with the same name. In analogy to cars:
Audi <-- section
Car name A <-- post.md (categories = ["Audi", "4WD"])
Car name B <-- post.md (categories = ["Audi", "Cabriolet"])
BMW <-- section
Car name C <-- post.md (categories = ["BMW", "4WD"])
Car name D <-- post.md (categories = ["BMW", "Cabriolet"])
Based off the docs I came up with this pseudocode:
<ul>
{{ range and (where $.Site.Pages ("Params.categories" "Audi"))
(where $.Site.Pages ("Params.categories" "4WD")) }}
<li>{{ .Title }}</li>
{{ end }}
</ul>
Can someone help me come up with the correct code for this use case? Thanks!