Skip to content

Commit

Permalink
Fix homepage highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Apr 3, 2020
1 parent 00a8a94 commit f7fec9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</div>

<nav class="sidebar-nav">
<a class="sidebar-nav-item{% if page.url == site.baseurl %} active{% endif %}" href="{{ '/' | absolute_url }}">Home</a>
<a class="sidebar-nav-item{% if page.title == 'Home' %} active{% endif %}" href="{{ '/' | absolute_url }}">Home</a>

{% comment %}
The code below dynamically generates a sidebar nav of pages with
Expand Down

0 comments on commit f7fec9a

Please sign in to comment.