{% assign groupIdx = 0 %} {% for group in include.groups %} {% assign group_name = group | first %} {% unless group_name == "collections" %}
{% for posts in group %} {% include post_list.html posts=posts groupIdx=groupIdx %} {% assign groupIdx = groupIdx | plus: 1 %} {% endfor %}
{% endunless %} {% endfor %}