Fix footer tab highlighting logic for improved navigation
All checks were successful
Deploy Jekyll site to Pages / build (push) Successful in 2m10s
All checks were successful
Deploy Jekyll site to Pages / build (push) Successful in 2m10s
This commit is contained in:
parent
3bae4ef3c4
commit
6a8bebbddb
@ -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>
|
<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 %}
|
{% for tab in sorted_pages %}
|
||||||
{% if tab.title and tab.permalink and tab.nav != false %}
|
{% 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">
|
<a href="{{ tab.url | relative_url }}" target="_self" class="cyber-a">
|
||||||
{% if tab.icon %}
|
{% if tab.icon %}
|
||||||
<i class="material-icons">{{ tab.icon }}</i>
|
<i class="material-icons">{{ tab.icon }}</i>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user