{% if page.has_other_pages %} {% if page.has_previous %} Previous Page {% endif %} {% if has_next and has_previous %} {% endif %} {% if page.has_next %} Next Page {% endif %} {% endif %}