{% if p == 1 %}
  • ← Previous
  • {% else %}
  • ← Previous
  • {% endif %} {% for i in prev_pages %}
  • {{i}}
  • {% endfor %}
  • {{p}} (current)
  • {% for i in next_pages %}
  • {{i}}
  • {% endfor %} {% if p >= page_max %}
  • Next →
  • {% else %}
  • Next →
  • {% endif %}