{% for article in articles %} {% set index = loop.index0 %} {% endfor %}