+ {% if page_count > 1 %}
+ <ul class="pagination flex-wrap mt-5">
+ {% for page in pages %}
+ {% if page.number != page_number %}
+ <li class="page-item"><a href="?page={{ page.number }}" class="page-link">{{ page.number }}</a></li>
+ {% else %}
+ <li class="page-item active"><span class="page-link">{{ page.number }}</span></li>
+ {% endif %}
+ {% endfor %}
+ </ul>
+ {% endif %}
+{% endblock %}
\ No newline at end of file