{% for page in paginator.pages %} {% if page %}
  • {{ page }}
  • {% else %}
  • …
  • {% endif %} {% endfor %}