grav-theme-libretic/templates/partials/taxonomylist.html.twig

13 lines
310 B
Twig
Raw Normal View History

2015-01-22 13:28:29 +01:00
{% set taxlist = taxonomylist.get() %}
{% if taxlist %}
2015-01-22 17:29:21 +01:00
<ul class="archives">
2015-01-22 13:28:29 +01:00
{% for tax,value in taxlist[taxonomy] %}
2015-01-22 17:29:21 +01:00
<li>
2015-02-19 00:14:33 +01:00
<a href="{{ base_url }}/tag{{ config.system.param_sep }}{{ tax|e('url') }}">{{ tax }} <span>({{ tax|length }})</span></a>
2015-01-22 17:29:21 +01:00
</li>
2015-01-22 13:28:29 +01:00
{% endfor %}
2015-01-22 17:29:21 +01:00
</ul>
2015-01-22 13:28:29 +01:00
{% endif %}