{% for item in reactions %} {% if forloop.counter0|divisibleby:break_every %} {% if forloop.counter0 == 0 %}