mirror of
https://github.com/zaaarf/friendenstein.git
synced 2024-11-14 03:29:23 +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 %}
|