{% with page_count=(item_count/max_items)|round(method="ceil")|int %} {% if page_count > 1 %} {% endif %} {% endwith %}