grav-theme-libretic/templates/partials/taxonomylist.html.twig
2015-01-22 17:29:21 +01:00

12 lines
282 B
Twig

{% set taxlist = taxonomylist.get() %}
{% if taxlist %}
<ul class="archives">
{% for tax,value in taxlist[taxonomy] %}
<li>
<a href="{{ base_url }}/tag:{{ tax|e('url') }}">{{ tax }} <span>({{ tax|length }})</span></a>
</li>
{% endfor %}
</ul>
{% endif %}