the home site for me: also iteration 3 or 4 of my site

chore: fix toc

dunkirk.sh 066fd54f 9f76d473

verified
Changed files
+5 -17
sass
css
templates
-1
sass/css/mods.css
···
display: inline-flex;
align-items: center;
vertical-align: middle;
-
gap: 0.5rem;
}
cite a {
+5 -16
templates/blog-page.html
···
{% endif %}
<h1>{{ page.title }}</h1>
-
{% if page.toc and page.extra.toc %}
+
{% if page.toc and page.extra["has_toc"] %}
<h2>Table of contents</h2>
<ul>
-
{% for h1 in page.toc %}
+
{% for h2 in page.toc %}
<li>
-
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
-
{% if h1.children %}
+
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
<ul>
-
{% for h2 in h1.children %}
+
{% for h3 in h2.children %}
<li>
-
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
-
<ul>
-
{% for h3 in h2.children %}
-
<li>
-
<a href="{{ h3.permalink | safe }}"
-
>{{ h3.title }}</a
-
>
-
</li>
-
{% endfor %}
-
</ul>
+
<a href="{{ h3.permalink | safe }}">{{ h3.title }}</a>
</li>
{% endfor %}
</ul>
-
{% endif %}
</li>
{% endfor %}
</ul>