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