[fix] home button highlight
parent
60d0a9fcd3
commit
1a7591074c
|
|
@ -30,7 +30,7 @@
|
|||
<nav>
|
||||
<ul class="flex flex-wrap justify-center lg:items-end gap-3 text-[15px] leading-5 m-2">
|
||||
{% 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>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue