Add: class active in the menu links

feature/oscar-theme
Óscar M. Lage 2022-03-03 22:07:53 +01:00
parent e3f63afad4
commit cf69ad4b70
1 changed files with 1 additions and 1 deletions

View File

@ -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 }}