{% extends base_template %}
{% load i18n %}

{% block content %}
<h1>{% translate "Table of contents" %}</h1>

{% for toc_section,pages_1,pages_2 in toc %}
<h2>{{ toc_section }}</h2>
<ul>
{% for page in pages_1 %}
<li><a href="{% url 'tinywiki:page' page.slug %}">{{ page.title }}</a></li>
{% endfor %}
{% for page in pages_2 %}
<li><a href="{% url 'tinywiki:page' page.slug %}">{{ page.title }}</a></li>
{% endfor %}
</ul>
{% endfor%}
{% endblock %}
