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

15 lines
545 B
Twig
Raw Normal View History

2023-01-10 23:43:35 +01:00
2023-01-11 00:04:36 +01:00
{% if base_url == page.url %}
2023-01-10 23:53:32 +01:00
2023-01-11 00:04:36 +01:00
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
{% if taxlist %}
<span class="tags">1
{% for tax,value in taxlist[taxonomy] %}
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
<a class="label label-rounded {{ label_class }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
2023-01-10 22:22:38 +01:00
{% endfor %}
2023-01-11 00:04:36 +01:00
</span>
{% endif %}
2023-01-11 00:01:57 +01:00
{% endif %}