fix: pagination index

This commit is contained in:
Cory Dransfeldt 2024-05-03 09:31:17 -07:00 committed by GitHub
parent e0b86f4a4f
commit efab224ec3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@
<select-pagination> <select-pagination>
<select aria-label="Page selection"> <select aria-label="Page selection">
{% for pageEntry in pagination.pages %} {% for pageEntry in pagination.pages %}
<option value="{{ forloop.index | minus: 1 }}">{{ forloop.index }} of {{ pagination.links.size }}</option> <option value="{{ forloop.index }}">{{ forloop.index }} of {{ pagination.links.size }}</option>
{% endfor %} {% endfor %}
</select> </select>
<noscript> <noscript>
@ -36,4 +36,4 @@
{% tablericon "arrow-right" "Next" %} {% tablericon "arrow-right" "Next" %}
</span> </span>
{% endif %} {% endif %}
</nav> </nav>