If you do subpages: false
this indeed works but if you do subpages: true
then the filter only works on the first level.
For example. I have a subpage “this should not be here” with template “whatever”. When i filter on index with subpages: false
I don’t see it, like expected.
query: site.index.filterBy('intendedTemplate', 'in', ['home', 'default'])
But if I use that same query with subpages: true
and I go to the subpage, I do see that page.
But I don’t want to see that page there. I only want everything with template home and default.