summaryrefslogtreecommitdiff
path: root/templates/page.html
blob: b06039fdb829db937ed22e9f9f894c6935f5b6ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% extends "index.html" %}
{% block title %}
	{{ config.title }} | {{ page.title }}
{% endblock title %}
{% block content %}
	<h1>{{ page.title }}</h1>
	{% for h1 in page.toc %}
	<ul>{% for h2 in h1.children %}
		<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>
			{% if h3.children %}
			<ul>{% for h4 in h3.children %}
				<li><a href="{{ h4.permalink | safe }}">{{ h4.title }}</a>
			{% endfor %}</ul>
			{% endif %}</li>
		{% endfor %}</ul>
		{% endif %}</li>
	{% endfor %}</ul>
	{% endfor %}
	{{ page.content | safe }}
{% endblock content %}