{% if story_content.has_previous %} ← Previous {% endif %} {% for page in story_content.paginator.page_range %} {% ifequal page story_content.number %} {{ page }} {% else %} {{ page }} {% endifequal %} {% endfor %} {% if story_content.has_next %} Next → {% endif %}