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