{% for article in articles %}
  1. {{ article.enumerator }} {{ article.title }}
  2. {% if article.articles %} {% include "wbwriter/templatetags/table_of_contents_articles.html" with articles=article.articles %} {% endif %} {% endfor %}