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 { li:last-child {
padding-right: 0; padding-right: 0;
} }
li[aria-current=page] a {
text-decoration: underline;
}
} }
a { a {

View File

@ -8,7 +8,8 @@
</label> </label>
<ul id="main-menu-items" role="list"> <ul id="main-menu-items" role="list">
{% for title, link in MENUITEMS %} {% 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"> <li aria-current="page" role="listitem">
{% else %} {% else %}
<li role="listitem"> <li role="listitem">
@ -24,3 +25,4 @@
</li> </li>
</ul> </ul>
</nav> </nav>
{# {% debug %} #}