navbar: Fix scrollspy not highlighting active menu item

Fix commit 524b562.
This commit is contained in:
George Cushen committed 2017-11-24 01:27:38 +00:00
1 parent 9e14c8a74e
commit 8800882700
1 file changed
+1 -1
+1 -1
View File
@@ -59,7 +59,7 @@
{{ end }}
<li class="nav-item">
<a href="{{ .URL | relLangURL }}"{{ if $.IsHome }} data-target="{{ (slicestr .URL 0 4) }}{{ .URL }}"{{ end }}{{ ($.Scratch.Get "target") | safeHTMLAttr }}>
<a href="{{ .URL | relLangURL }}"{{ if $.IsHome }} data-target="{{ .URL }}"{{ end }}{{ ($.Scratch.Get "target") | safeHTMLAttr }}>
{{ .Pre }}
<span>{{ .Name }}</span>
{{ .Post }}