{% if "events" in page.url %} {% set tags = page.collection().group('tags') %} {% set top5tags = tags|slice(0, 5) %}