navbar item corresponding to current page now gets underlined
This commit is contained in:
parent
db960c0fe4
commit
2ae4cafecd
@ -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 {
|
||||||
|
|||||||
@ -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">
|
||||||
@ -23,4 +24,5 @@
|
|||||||
</label>
|
</label>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
{# {% debug %} #}
|
||||||
Loading…
Reference in New Issue
Block a user