This commit is contained in:
Yan Lin 2026-02-03 10:40:02 +01:00
parent 587da64355
commit e259b73404
3 changed files with 49 additions and 0 deletions

View file

@ -12,6 +12,25 @@
<time datetime="{{ page.date }}">{{ page.date | date(format="%B %d, %Y") }}</time>
{% endif %}
</header>
{% if page.extra.toc | default(value=false) %}
<nav class="toc">
<p class="toc-title">Table of Contents</p>
<ul>
{% for h2 in page.toc %}
<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>
</nav>
{% endif %}
<div class="content">
{{ page.content | safe }}
</div>