2024-01-02 12:18:18 +01:00
|
|
|
{% macro toc(toc) %}
|
2023-12-22 12:19:19 +01:00
|
|
|
<div class="toc">
|
|
|
|
<h2>Table of contents</h2>
|
|
|
|
<ul>
|
2024-01-02 12:18:18 +01:00
|
|
|
{% for h1 in toc %}
|
2023-12-26 01:11:47 +01:00
|
|
|
<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>
|
|
|
|
<ul>
|
|
|
|
{% for h3 in h2.children %}
|
|
|
|
<li>
|
|
|
|
<a href="{{ h3.permalink | safe }}">{{ h3.title }}</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
2023-12-22 12:19:19 +01:00
|
|
|
</ul>
|
2023-12-26 01:11:47 +01:00
|
|
|
</div>
|
2024-01-02 12:18:18 +01:00
|
|
|
{% endmacro toc %}
|
|
|
|
|
|
|
|
{% macro tags(tags) %}
|
|
|
|
<p class="tags-data">
|
|
|
|
{% if page.taxonomies.tags %}
|
|
|
|
{% for tag in tags %}
|
|
|
|
<a href="/tags/{{ tag | slugify }}">/{{ tag }}/</a>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
{% endmacro tags %}
|