Enable taxonomies and list them in navigation
This commit is contained in:
1 parent
5db0184653
commit
e0ca8f1f2c
5 files changed
+17
-6
No files matched your search
@@ -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