{% if query.get_page() > 1 %} {% endif %} {% if query.get_pages() > query.get_page() %} {% endif %}