<span>
    {% if page_obj.has_previous %}
        <a href="?page=1" role="button">&laquo; premier</a>
        <a href="?page={{ page_obj.previous_page_number }}" role="button">précédent</a>
    {% endif %}

    {% if page_obj.paginator.num_pages != 1 %}
    <span>
        Page {{ page_obj.number }} sur {{ page_obj.paginator.num_pages }}
    </span>
    {% endif %}

    {% if page_obj.has_next %}
        <a href="?page={{ page_obj.next_page_number }}" role="button">suivant</a>
        <a href="?page={{ page_obj.paginator.num_pages }}" role="button">dernier &raquo;</a>
    {% endif %}
</span>
