{% if ddr_gitki_toc_max_level > 1 %} {% for h2 in document.toc %}
  • {{ h2.text }}
      {% if ddr_gitki_toc_max_level > 2 %} {% for h3 in h2.children %}
    • {{ h3.text }}
        {% if ddr_gitki_toc_max_level > 3 %} {% for h4 in h3.children %}
      • {{ h4.text }}
          {% if ddr_gitki_toc_max_level > 4 %} {% for h5 in h4.children %}
        • {{ h5.text }}
            {% if ddr_gitki_toc_max_level > 5 %} {% for h6 in h5.children %}
          • {{ h6.text }}
          • {% endfor %} {% endif %}
        • {% endfor %} {% endif %}
      • {% endfor %} {% endif %}
    • {% endfor %} {% endif %}
  • {% endfor %} {% endif %}