{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %} {% if base_url == page.url %} {% if taxlist %} 2 {% for tax,value in taxlist[taxonomy] %} {% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %} {{ tax }} {% endfor %} {% endif %} {% endif %} {% if "news" not in page.url %} {% set pages = page.collection()|filter(page => page.header.event.start is defined) %} {% for p in pages %} {% for l in p %} {{ l }} {% endfor %} {% endfor %} {% 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 %}