Enable taxonomies and list them in navigation
This commit is contained in:
@ -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 %}
|
||||
|
Reference in New Issue
Block a user