set ARIA properties in navbar

This commit is contained in:
anna 2021-02-13 02:50:46 +01:00
parent 3fc2fa6136
commit 7d6ee7465b
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

@ -18,7 +18,7 @@
<nav> <nav>
<ul> <ul>
{% for item in site.data.navigation %} {% for item in site.data.navigation %}
<li{% if page.url == item.link %} class="current"{% endif %}> <li {% if page.url == item.link %}class="current" aria-current="true"{% else %}aria-current="false"{% endif %}>
<a href="{{ item.link }}">{{ item.name }}</a> <a href="{{ item.link }}">{{ item.name }}</a>
</li> </li>
{% endfor %} {% endfor %}