[fix] home button highlight
parent
60d0a9fcd3
commit
1a7591074c
|
|
@ -30,7 +30,7 @@
|
||||||
<nav>
|
<nav>
|
||||||
<ul class="flex flex-wrap justify-center lg:items-end gap-3 text-[15px] leading-5 m-2">
|
<ul class="flex flex-wrap justify-center lg:items-end gap-3 text-[15px] leading-5 m-2">
|
||||||
{% for button in config.nav %}
|
{% for button in config.nav %}
|
||||||
<li class="nav-item {% if request.path == '/' %}{{ home }}{% elif button.href in request.path %}active{% endif %}">
|
<li class="nav-item {% if button.href == '/' %}{{ home }}{% elif button.href in request.path %}active{% endif %}">
|
||||||
<a href="{{ button.href }}">{{ button.title }}</a>
|
<a href="{{ button.href }}">{{ button.title }}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue