Re-indent table of content code

This commit is contained in:
Philipp Oppermann
2017-10-05 11:50:51 +02:00
parent 1c9c20c810
commit 36eccdd102

View File

@@ -11,20 +11,14 @@
<aside id="toc"> <aside id="toc">
<h2>Table of Contents</h2> <h2>Table of Contents</h2>
<ol> <ol>
{% for h2 in page.toc %} {% for h2 in page.toc %}<li>
<li>
<a href="{{h2.permalink | safe}}">{{ h2.title }}</a> <a href="{{h2.permalink | safe}}">{{ h2.title }}</a>
{% if h2.children %} {% if h2.children %}<ol>
<ol> {% for h3 in h2.children %}<li>
{% for h3 in h2.children %}
<li>
<a href="{{h3.permalink | safe}}">{{ h3.title }}</a> <a href="{{h3.permalink | safe}}">{{ h3.title }}</a>
</li> </li>{% endfor %}
{% endfor %} </ol>{% endif %}
</ol> </li>{% endfor %}
{% endif %}
</li>
{% endfor %}
</ol> </ol>
</aside> </aside>
{{ page.content | safe }} {{ page.content | safe }}