{% if previous %} << {% endif %} {% for p in pages %} {{ p.number }} {% endfor %} {% if next %} >> {% endif %}