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