grav/themes/materialize/templates/partials/taxonomylist.html.twig

10 lines
251 B
Twig
Raw Normal View History

{% set taxlist = taxonomylist.get() %}
{% if taxlist %}
<span class="tags">
{% for tax, value in taxlist[taxonomy] %}
<a href="{{ base_url }}/tag:{{ tax }}"><span class="new badge">{{ tax|upper }}</span></a>
{% endfor %}
</span>
{% endif %}