mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-15 21:35:13 +00:00
switched theme
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
{% if page.toc %}
|
||||
<details class="post-toc">
|
||||
<summary>Table of Contents</summary>
|
||||
<ul>
|
||||
{% for h1 in page.toc %}
|
||||
<li>
|
||||
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
|
||||
{% if h1.children %}
|
||||
<ul>
|
||||
{% for h2 in h1.children %}
|
||||
<li><a href="{{ h2.permalink | safe }}">{{ h2.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</details>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user