diff --git a/_includes/topnav.html b/_includes/topnav.html index e6fb5ade8..032862224 100644 --- a/_includes/topnav.html +++ b/_includes/topnav.html @@ -1,10 +1,10 @@ {% for node in site.posts reversed %} - {% if node.page == page.page %} + {% if node.page == page.page and (page.page != nil or node.id == '/home') %} {% assign active = 'active' %} {% else %} {% assign active = '' %} - {%endif %} + {% endif %} {% capture id %}{{ node.id | remove:'/' | downcase }}{% endcapture %} {% if node.page %}