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 -%} {%- capture pageUrl %}/{{ link | downcase }}/{% endcapture -%}
{% if pageUrl contains page.fileSlug and page.fileSlug %} {% if pageUrl contains page.fileSlug and page.fileSlug %}
<span class="active"> <span class="active" aria-current="page">
{% if icon %} {% if icon %}
{% tablericon icon link %} {% tablericon icon link %}
{% else %} {% else %}

View file

@ -20,7 +20,7 @@
</button> </button>
{% endif %} {% endif %}
<div class="text-center"> <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> </div>
{% if pagination.href.next %} {% if pagination.href.next %}
<a href="{{ pagination.href.next }}"> <a href="{{ pagination.href.next }}">