mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Re-indent table of content code
This commit is contained in:
@@ -11,22 +11,16 @@
|
|||||||
<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 %}<ol>
|
||||||
{% if h2.children %}
|
{% for h3 in h2.children %}<li>
|
||||||
<ol>
|
<a href="{{h3.permalink | safe}}">{{ h3.title }}</a>
|
||||||
{% for h3 in h2.children %}
|
</li>{% endfor %}
|
||||||
<li>
|
</ol>{% endif %}
|
||||||
<a href="{{h3.permalink | safe}}">{{ h3.title }}</a>
|
</li>{% endfor %}
|
||||||
</li>
|
</ol>
|
||||||
{% endfor %}
|
</aside>
|
||||||
</ol>
|
|
||||||
{% endif %}
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ol>
|
|
||||||
</aside>
|
|
||||||
{{ page.content | safe }}
|
{{ page.content | safe }}
|
||||||
{% endblock main %}
|
{% endblock main %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user