{% load humfrey_elasticsearch %}{% with previous_page=page|add:"-1" next_page=page|add:"1" %}{% if page_count > 1 %}

{% if page != 1 %} {% endif %} {% for other_page in pages %} {% if other_page %} {% if other_page == page %} {{ other_page }} {% else %} {% endif %} {% else %}…{% endif %} {% endfor %} {% if page != page_count %} {% endif %}

{% endif %}{% endwith %}