Always show pagination buttons

This commit is contained in:
Jake Howard 2022-09-25 21:10:35 +01:00
parent ac30206e97
commit 92f1a17b9f
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -2,11 +2,15 @@
<nav class="pagination is-centered" role="navigation" aria-label="pagination"> <nav class="pagination is-centered" role="navigation" aria-label="pagination">
{% if page.has_previous %} {% if page.has_previous %}
<a class="pagination-previous" href="{% querystring page=page.previous_page_number %}">Previous</a> <a class="pagination-previous" href="{% querystring page=page.previous_page_number %}">&larr;</a>
{% else %}
<a class="pagination-previous is-disabled">&larr;</a>
{% endif %} {% endif %}
{% if page.has_next %} {% if page.has_next %}
<a class="pagination-next" href="{% querystring page=page.next_page_number %}">Next page</a> <a class="pagination-next" href="{% querystring page=page.next_page_number %}">&rarr;</a>
{% else %}
<a class="pagination-next is-disabled">&rarr;</a>
{% endif %} {% endif %}
<ul class="pagination-list"> <ul class="pagination-list">