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