1
0

Enable taxonomies and list them in navigation

This commit is contained in:
2021-12-03 22:59:23 +01:00
parent 5db0184653
commit e0ca8f1f2c
5 changed files with 17 additions and 6 deletions

@ -26,3 +26,13 @@
</div>
{% endif %}
{% endmacro %}
{% macro list_taxonomy(title, kind) %}
<span class="title">{{ title }}</span>
<ul>
{% set taxonomy = get_taxonomy(kind=kind) %}
{% for term in taxonomy.items %}
<li class="item"><a href="{{ term.permalink | safe }}">{{ term.name }}</a></li>
{% endfor %}
</ul>
{% endmacro list_categories %}