{% extends "base.html" %}
{% import "macro.html" as macro %}

{% block content %}
{{ section.content | safe }}
{% endblock %}

{% block toc %}
{% set_global header_count = 4 %}

<ul id="toc">
  {% for h2 in section.toc %}
    <li><a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
    {% if h2.children %}<ul>
      {% for h3 in h2.children %}
      <li><a href="{{ h3.permalink | safe }}">{{ h3.title }}</a></li>
      {% endfor %}
  </ul>
    {% endif %}
  </li>
  {% endfor %}
</ul>
{% endblock %}
