changed logic in determining active page for the nav bar
This commit is contained in:
parent
b2fc2ab3cc
commit
4b5e874a93
@ -1,5 +1,5 @@
|
||||
<nav>
|
||||
{% for item in site.data.nav.list %}
|
||||
<a href="{{site.baseurl}}{{item.url}}"{% if item.url == page.url %} class="a-active" {% endif %}>{{item.title}}</a>
|
||||
<a href="{{site.baseurl}}{{item.url}}"{% if item.url contains page.url %} class="a-active" {% endif %}>{{item.title}}</a>
|
||||
{% endfor %}
|
||||
</nav>
|
||||
|
Loading…
Reference in New Issue
Block a user