It would be good to display the pagination (includes/pagination.html) only when there is more than one page available (i.e. the list of items exceeds the one set in settings).
What I Did
The existing template could be wrapped in
{% if items.paginator.num_pages > 1 %}
...
{% endif %}
Description
It would be good to display the pagination (includes/pagination.html) only when there is more than one page available (i.e. the list of items exceeds the one set in settings).
What I Did
The existing template could be wrapped in
See: https://github.com/kingsdigitallab/egomedia-django/blob/design/templates/kdl_wagtail_core/includes/pagination.html