{% load django_bootstrap5 %} {% if num_pages > 1 %} {% with url=bootstrap_pagination_url|default:"" %} {% endwith %} {% endif %}