diff options
author | Prefetch | 2020-04-30 04:02:16 +0200 |
---|---|---|
committer | Prefetch | 2020-04-30 04:02:16 +0200 |
commit | c3ff543b2b2b254f4583bc72dd1e16278729bc92 (patch) | |
tree | 5057a832c0b43bf59c1b8faf133a7fe257f997bf /templates | |
parent | 28888cb59652be266f971a75c7b205de7263b270 (diff) |
Add level to table of contents
Diffstat (limited to 'templates')
-rw-r--r-- | templates/page.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/page.html b/templates/page.html index 2144e35..b06039f 100644 --- a/templates/page.html +++ b/templates/page.html @@ -9,7 +9,12 @@ <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> + <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> |