aboutsummaryrefslogtreecommitdiffstats
path: root/_includes
diff options
context:
space:
mode:
authorVeikka Kähkönen <insiding@gmail.com>2017-12-01 12:54:12 +0200
committerVeikka Kähkönen <insiding@gmail.com>2017-12-01 12:54:12 +0200
commit7c51a244be24848e3d910f57c6661a0c39aa3a96 (patch)
treeb1bf960c148d47e21cead713cd33e7ef461cdd65 /_includes
parent9ca4f39dfe5367ebe708cb2c4cf3f5c5f4ff6fc1 (diff)
Fix sub-navigation active class logic
Diffstat (limited to '_includes')
-rw-r--r--_includes/header.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/_includes/header.html b/_includes/header.html
index 1304edc..2e3330b 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -41,7 +41,8 @@
{% else %}
{% assign absolute_href = main_page_href | absolute_url | append: subitem.href }} %}
{% endif %}
- <li class="navigation__item {% if subitem.href == subpage_href %}active{% endif %}">
+ {% assign subitem_href = subitem.href | remove: ".html" %}
+ <li class="navigation__item {% if subitem_href == subpage_href %}active{% endif %}">
<a href="{{ absolute_href }}">{{ subitem.title }}</a>
</li>
{% endfor %}