{# add extra list items to get a multiple of 3 #} {% if count|add:1|divisibleby:3 %}
  • {% endif %} {% if count|add:2|divisibleby:3 %}
  • {% endif %}