diff options
| author | Veikka Kähkönen <insiding@gmail.com> | 2017-12-01 12:54:12 +0200 |
|---|---|---|
| committer | Veikka Kähkönen <insiding@gmail.com> | 2017-12-01 12:54:12 +0200 |
| commit | 7c51a244be24848e3d910f57c6661a0c39aa3a96 (patch) | |
| tree | b1bf960c148d47e21cead713cd33e7ef461cdd65 /_includes/header.html | |
| parent | 9ca4f39dfe5367ebe708cb2c4cf3f5c5f4ff6fc1 (diff) | |
Fix sub-navigation active class logic
Diffstat (limited to '_includes/header.html')
| -rw-r--r-- | _includes/header.html | 3 |
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 %} |
