{% if pageCount > 1 %}
<div class="col mt-3 d-flex justify-content-center">
<nav class="navigation pagination " role="navigation">
<div class="nav-links">
{% if previous is defined %}
<a class="prev page-numbers"
href="{{ path(route, query|merge({(pageParameterName): previous})) }}">
<i class="fa fa-chevron-left"></i>
<span class="screen-reader-text">Précédent</span>
</a>
{% endif %}
{% for page in pagesInRange %}
{% if page != current %}
<a class="page-numbers" href="{{ path(route, query|merge({(pageParameterName): page})) }}">
{{ page }}
</a>
{% else %}
<span class="page-numbers current">
<a href="{{ path(route, query|merge({(pageParameterName): page})) }}">
{{ page }}
</a>
</span>
{% endif %}
{% endfor %}
{% if next is defined %}
<a class="next page-numbers"
href="{{ path(route, query|merge({(pageParameterName): next})) }}">
<span class="screen-reader-text">Suivant</span>
<i class="fa fa-chevron-right"></i>
</a>
{% endif %}
</div>
</nav>
</div>
{% endif %}