Fix pagination

This commit is contained in:
R. Miles McCain 2020-04-16 11:01:22 -04:00
parent 52bd8df671
commit d44c657943
No known key found for this signature in database
GPG Key ID: 91CB47BDDF2671A5

View File

@ -12,12 +12,12 @@
{% endif %}
</div>
<ul class="pagination-list w-full md:w-auto mb-2">
<ul class="pagination-list w-full md:w-auto mb-2 flex">
{% for pnum in begin %}
{% ifequal page.number pnum %}
<li><a class="button field w-auto text-white bg-gray-700">{{ pnum }}</a></li>
<li><a class="button field w-auto mx-1 text-white bg-gray-700">{{ pnum }}</a></li>
{% else %}
<li><a class="button field w-auto" href="?page={{ pnum }}{{url_parameters}}">{{ pnum }}</a></li>
<li><a class="button field w-auto mx-1" href="?page={{ pnum }}{{url_parameters}}">{{ pnum }}</a></li>
{% endifequal %}
{% endfor %}
@ -25,9 +25,9 @@
<li><span class="pagination-ellipsis">&hellip;</span></li>
{% for pnum in middle %}
{% ifequal page.number pnum %}
<li><a class="button field w-auto text-white bg-gray-700">{{ pnum }}</a></li>
<li><a class="button field w-auto mx-1 text-white bg-gray-700">{{ pnum }}</a></li>
{% else %}
<li><a class="button field w-auto" href="?page={{ pnum }}{{url_parameters}}">{{ pnum }}</a></li>
<li><a class="button field w-auto mx-1" href="?page={{ pnum }}{{url_parameters}}">{{ pnum }}</a></li>
{% endifequal %}
{% endfor %}
{% endif %}
@ -36,9 +36,9 @@
<li><span class="pagination-ellipsis">&hellip;</span></li>
{% for pnum in end %}
{% ifequal page.number pnum %}
<li><a class="button field w-auto text-white bg-gray-700">{{ pnum }}</a></li>
<li><a class="button field w-auto mx-1 text-white bg-gray-700">{{ pnum }}</a></li>
{% else %}
<li><a class="button field w-auto" href="?page={{ pnum }}{{url_parameters}}">{{ pnum }}</a></li>
<li><a class="button field w-auto mx-1" href="?page={{ pnum }}{{url_parameters}}">{{ pnum }}</a></li>
{% endifequal %}
{% endfor %}
{% endif %}