Do not use ifequal
{% endif %}
{% for page in pages %}
{% if page %}
- {% ifequal page page_obj.number %}
+ {% if page == page_obj.number %}
<span class="current page">{{ page }}</span>
{% else %}
<a href="?page={{ page }}{{ getvars }}{{ hashtag }}" class="page">{{ page }}</a>
- {% endifequal %}
+ {% endif %}
{% else %}
<span>...</span>
{% endif %}
