summaryrefslogtreecommitdiff
path: root/templates/page.html
diff options
context:
space:
mode:
authorPrefetch2020-04-27 04:08:47 +0200
committerPrefetch2020-04-27 04:08:47 +0200
commitc30193921ef3fa3e74d79030f50b456eb63a84f3 (patch)
treee93ef50161ba0369ac3e31026247b025eb35b87f /templates/page.html
parentd7695acb4a70f5fb7cc9cce0b65c71fd3e0380aa (diff)
Migrate to prefetch.eu etc.
Diffstat (limited to 'templates/page.html')
-rw-r--r--templates/page.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/page.html b/templates/page.html
index 8058656..2144e35 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -3,5 +3,16 @@
{{ 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></li>
+ {% endfor %}</ul>
+ {% endif %}</li>
+ {% endfor %}</ul>
+ {% endfor %}
{{ page.content | safe }}
{% endblock content %}