20 lines
673 B
Twig
20 lines
673 B
Twig
{% set collection = page.collection() %}
|
|
{% if "events" in page.url %}
|
|
{% set collection_filtered = collection|filter(page => page.header.event.start is defined) %}
|
|
{% set taxlist = taxonomylist.get(collection_filtered) %}
|
|
1
|
|
{% else %}
|
|
{% set taxlist = taxonomylist.get(collection) %}
|
|
2
|
|
{% endif %}
|
|
|
|
|
|
{% if taxlist %}
|
|
<span class="tags">
|
|
{% 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>
|
|
{% endfor %}
|
|
</span>
|
|
{% endif %}
|