{% set currentPage = 6 %} {% set bodyClasses = 'page has-primary-bg' %} {% extends "../../layout/archive-contacts.twig" %} {% block posts %} <div class="cards-container"> <div class="cards-container__inner"> {% for card in post_type.buildings.items|sortby('title') %} {% if card.title|startswith(i) %} {% include '../../layout/partials/card.twig' with {'card': card} %} {% endif %} {% endfor %} </div> </div> {% endblock %}