{% if page.has_previous %} Previous {% else %} Previous {% endif %} {% if page.has_next %} Next {% else %} Next {% endif %}
    {% for pnum in begin %} {% ifequal page.number pnum %}
  • {{ pnum }}
  • {% else %}
  • {{ pnum }}
  • {% endifequal %} {% endfor %} {% if middle %}
  • …
  • {% for pnum in middle %} {% ifequal page.number pnum %}
  • {{ pnum }}
  • {% else %}
  • {{ pnum }}
  • {% endifequal %} {% endfor %} {% endif %} {% if end %}
  • …
  • {% for pnum in end %} {% ifequal page.number pnum %}
  • {{ pnum }}
  • {% else %}
  • {{ pnum }}
  • {% endifequal %} {% endfor %} {% endif %}