Fix footer tab highlighting logic for improved navigation
All checks were successful
Deploy Jekyll site to Pages / build (push) Successful in 2m10s

This commit is contained in:
Florian Weber 2025-05-10 23:40:35 +02:00
parent 3bae4ef3c4
commit 6a8bebbddb
Signed by: f.weber
GPG Key ID: B162B599E31221C6

View File

@ -3,7 +3,7 @@
<li class="tab col s1 {% if page.url == "/" %}bg-red{% else %}bg-dark{% endif %}"><a href="{{ "/" | relative_url }}" class="cyber-a"><i class="material-icons">home</i></a></li>
{% for tab in sorted_pages %}
{% if tab.title and tab.permalink and tab.nav != false %}
<li class="tab col s1 {% if page.url == tab.url %}bg-red{% else %}bg-dark{% endif %}">
<li class="tab col s1 {% if page.url contains tab.url %}bg-red{% else %}bg-dark{% endif %}">
<a href="{{ tab.url | relative_url }}" target="_self" class="cyber-a">
{% if tab.icon %}
<i class="material-icons">{{ tab.icon }}</i>