chore: aria attributes for current page

This commit is contained in:
Cory Dransfeldt 2024-01-04 09:10:49 -08:00
parent 2f2944b0e0
commit cd3f337582
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{%- capture pageUrl %}/{{ link | downcase }}/{% endcapture -%}
{% if pageUrl contains page.fileSlug and page.fileSlug %}
<span class="active">
<span class="active" aria-current="page">
{% if icon %}
{% tablericon icon link %}
{% else %}

View file

@ -20,7 +20,7 @@
</button>
{% endif %}
<div class="text-center">
{{ pagination.pageNumber | plus: 1 }} of {{ pagination.links.size }}
<span aria-current="page">{{ pagination.pageNumber | plus: 1 }}</span> of {{ pagination.links.size }}
</div>
{% if pagination.href.next %}
<a href="{{ pagination.href.next }}">