hazelnut.dev/templates/page.html

26 lines
686 B
HTML
Raw Normal View History

2020-09-09 01:10:48 +00:00
{% extends "base.html" %}
{% block title %}{{ page.title }} - Hazelnut{% endblock title %}
{% block content %}
<h1>Table of Contents</h1>
<ul>
{% for h1 in page.toc %}
<li>
2020-09-09 01:29:13 +00:00
<a class="internal" href="{{ h1.permalink | replace(from="/#", to="#") }}">{{ h1.title }}</a>
2020-09-09 01:10:48 +00:00
{% if h1.children %}
<ul>
{% for h2 in h1.children %}
<li>
2020-09-09 01:29:13 +00:00
<a class="internal" href="{{ h2.permalink | replace(from="/#", to="#") }}">{{ h2.title }}</a>
2020-09-09 01:10:48 +00:00
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{{ page.content | safe }}
{% endblock content %}