[fix] home button highlight

main
yaemiku 2022-07-26 00:02:04 +02:00
parent 60d0a9fcd3
commit 1a7591074c
Signed by: podlaskizbs
GPG Key ID: ADC039636B3E4AAB
1 changed files with 1 additions and 1 deletions

View File

@ -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 %}