{% assign counter = 1 %} {% for post in site.posts reversed %} {% if post.categories contains include.list-category %}
  • #{{ counter }} {{ post.title }}
  • {% assign counter=counter | plus:1 %} {% endif %} {% endfor %}
  •