{% if page.has_previous %}
  • «
  • {% else %}
  • «
  • {% endif %} {% for page_num, url in pages %} {% if page_num == current %}
  • {{ page_num }}(current)
  • {% elif page_num %}
  • {{ page_num }}
  • {% else %}
  • …
  • {% endif %} {% endfor %} {% if page.has_next %}
  • »
  • {% else %}
  • »
  • {% endif %}