Skip to content

Commit

Permalink
Fix active menu item display
Browse files Browse the repository at this point in the history
The current menu item is not properly highlighted.
  • Loading branch information
smortex authored Mar 12, 2024
1 parent 37ae124 commit a290988
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
{% if page.url contains link.url %}
{% assign active = 'active' %}
{% endif %}
<li class="nav-item {{ active }}">
<a class="nav-link" href="{{site.url}}{{site.baseurl}}{{ link.url }}" data-proofer-ignore>{{ link.title }}</a>
<li class="nav-item">
<a class="nav-link {{ active }}" href="{{site.url}}{{site.baseurl}}{{ link.url }}" data-proofer-ignore>{{ link.title }}</a>
</li>
{% endfor %}
</ul>
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="{{site.url}}{{site.baseurl}}/privacy-policy"> Privacy Policy</a></li>
<li class="nav-item"><a class="nav-link{% if page.url contains "/privacy-policy" %} active{% endif %}" href="{{site.url}}{{site.baseurl}}/privacy-policy"> Privacy Policy</a></li>
<li class="nav-item"><a class="nav-link" href="https://github.com/voxpupuli"><i class="fa fa-github"></i> Github</a></li>
</ul>
</div>
Expand Down

0 comments on commit a290988

Please sign in to comment.