10 lines
450 B
Twig
10 lines
450 B
Twig
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
|
|
|
|
{% if taxlist %}
|
|
<span class="tags">
|
|
{% for tax,value in taxlist[taxonomy] %}
|
|
{% set badge_class = uri.param(taxonomy) == tax ? 'badge-primary' : 'badge-secondary' %}
|
|
<a class="badge {{ badge_class }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
|
|
{% endfor %}
|
|
</span>
|
|
{% endif %}
|