Add: class active in the menu links
This commit is contained in:
parent
e3f63afad4
commit
cf69ad4b70
@ -15,7 +15,7 @@
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.main }}
|
||||
<li>
|
||||
<a href="{{ .URL }}">
|
||||
<a href="{{ .URL }}" {{ if eq $currentPage.RelPermalink .URL }}class="active"{{ end }}>
|
||||
{{ .Pre }}
|
||||
<span>{{ .Name }}</span>
|
||||
{{ .Post }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user