mirror of
https://github.com/zaaarf/friendenstein.git
synced 2024-11-10 01:29:21 +01:00
38 lines
752 B
HTML
38 lines
752 B
HTML
{% macro toc(toc) %}
|
|
<div class="toc">
|
|
<h2>Table of contents</h2>
|
|
<ul>
|
|
{% for h1 in 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>
|
|
<ul>
|
|
{% for h3 in h2.children %}
|
|
<li>
|
|
<a href="{{ h3.permalink | safe }}">{{ h3.title }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% 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 %}
|