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 := . }}
{{ range .Site.Menus.main }}
<li>
<a href="{{ .URL }}">
<a href="{{ .URL }}" {{ if eq $currentPage.RelPermalink .URL }}class="active"{{ end }}>
{{ .Pre }}
<span>{{ .Name }}</span>
{{ .Post }}