hazelnut.dev/templates/page.html

26 lines
604 B
HTML

{% extends "base.html" %}
{% block title %}{{ page.title }} - Hazelnut{% endblock title %}
{% block content %}
<h1>Table of Contents</h1>
<ul>
{% for h1 in page.toc %}
<li>
<a href="{{h1.permalink | safe}}">{{ h1.title }}</a>
{% if h1.children %}
<ul>
{% for h2 in h1.children %}
<li>
<a href="{{h2.permalink | safe}}">{{ h2.title }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{{ page.content | safe }}
{% endblock content %}