mirror of
https://github.com/helenclx/leilukin-site.git
synced 2025-04-04 20:02:41 +00:00
Place aria-current as the first attribute of the <a> tag
This commit is contained in:
parent
69c32a8a5b
commit
cec76fa45c
@ -4,7 +4,7 @@
|
|||||||
{% set currentUrl %}{{ page.url }}{% endset %}
|
{% set currentUrl %}{{ page.url }}{% endset %}
|
||||||
{% for page in collections.pages %}
|
{% for page in collections.pages %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ page.url }}" {% if currentUrl === page.url %}aria-current="page"{% endif %}>
|
<a {% if currentUrl === page.url %}aria-current="page"{% endif %} href="{{ page.url }}">
|
||||||
{{ page.data.title or page.data.metadata.title }}
|
{{ page.data.title or page.data.metadata.title }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user