Hi
I am struggling with page collections and filtering. I hope someone can point me in the right direction.
In my default.md frontmatter header I have defined two collections:
---
tutorials:
items:
- '@self.children'
- '@taxonomy':
category: [excel]
order:
by: date
dir: desc
limit: 9
pagination: false
blog:
items:
- '@self.children'
- '@taxonomy':
category: [blog]
order:
by: date
dir: desc
limit: 9
pagination: false
---
In my default.html.twig template I called them using:
{% set tutorials = page.collection('tutorials') %}
{% set blog = page.collection('blog') %}
...
{% for p in tutorials %} code
{% endfor%}
{% for p in blog %}
{% endfor%}
Blog posts from root directory only are showing up, as well as all info related! @self.children and twig commands are working.
The only problem category is not filtered and I have two identical sections showing all posts.
Does anyone have an idea why?
Thank you
Jack