Happy New Years everyone.
So, I’m using Grav as a hobby and I am running into an issue - after updating from the last version my collection on a page looks like it is being run through twice in my For Each.
The folder structure is
Posts
|-- Mobile
| |-- Mobile Post 1
| |-- Mobile Post 2
|-- Pc
|-- Pc Post 1
|-- PC Post 2
On the posts file I have the header defined as :
title: Posts
process:
twig: true
markdown: false
twig_first: true
never_cache_twig: true
content:
items: '@self.descendants'
filter:
non-visible: true
type: item
order:
by: date
dir: desct
limit: 12
pagination: 'true'
I’ve tried changing between .descendants and .children
and then the page code is:
{% for p in page.collection %}
<h2>{{ p.title|e }}</h2>
{{ p.summary|raw }}
{% endfor %}
Thank you for any help!