mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
navbar: Fix scrollspy not highlighting active menu item
Fix commit 524b562
.
This commit is contained in:
parent
9e14c8a74e
commit
8800882700
1 changed files with 1 additions and 1 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue