{% set total_pages = (total // per_page) + (1 if total % per_page else 0) %} {% if total_pages > 1 %} {% endif %}