{#- Collect all terms. -#} {#- We don't use `get_taxonomy` so users aren't forced to use 'tags' -#} {% set all_terms = [] %} {% for page in show_pages %} {% if page.taxonomies %} {% for tax_name, terms in page.taxonomies %} {% for term in terms %} {% set_global all_terms = all_terms | concat(with=term) %} {% endfor %} {% endfor %} {% endif %} {% endfor %} {#- Display unique terms -#} {% set unique_terms = all_terms | unique | sort %} {%- if unique_terms | length >= 2 -%}