Skip to content

Commit f7fec9a

Browse files
committed
Fix homepage highlight
1 parent 00a8a94 commit f7fec9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</div>
1010

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

1414
{% comment %}
1515
The code below dynamically generates a sidebar nav of pages with

0 commit comments

Comments
 (0)