{% set pages = page.collection() %}
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
{% if "events" in page.url %}
2
{% for tax,value in taxlist[taxonomy] %}
{% for page in pages %}
{% if tax in page.tags %}
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
{{ tax }}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% if taxlist %}
2
{% for tax,value in taxlist[taxonomy] %}
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
{{ tax }}
{% endfor %}
{% endif %}