navbar item corresponding to current page now gets underlined

This commit is contained in:
eclipse 2025-02-09 12:31:04 +01:00
parent db960c0fe4
commit 2ae4cafecd
2 changed files with 8 additions and 2 deletions

View File

@ -194,6 +194,10 @@ a {
li:last-child {
padding-right: 0;
}
li[aria-current=page] a {
text-decoration: underline;
}
}
a {

View File

@ -8,7 +8,8 @@
</label>
<ul id="main-menu-items" role="list">
{% for title, link in MENUITEMS %}
{% if link == url %}
{% if output_file[-10:] == "index.html" and "/" + output_file[:-10] == link %} {# 10 characters is the length of
"index.html" #}
<li aria-current="page" role="listitem">
{% else %}
<li role="listitem">
@ -23,4 +24,5 @@
</label>
</li>
</ul>
</nav>
</nav>
{# {% debug %} #}