fix(website): dont remove url on active page in navbar

pull/177/head
TorchedSammy 2022-06-22 15:34:22 -04:00
parent 50fbe72aa2
commit 09f5a3102e
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
{{ $currentPage := . }} {{ $currentPage := . }}
{{ range .Site.Menus.nav }} {{ range .Site.Menus.nav }}
<li class="nav-item"> <li class="nav-item">
<a {{ if not ($currentPage.IsMenuCurrent "nav" .) }}href="{{ .URL }}"{{ end }} class="nav-link {{ if $currentPage.IsMenuCurrent "nav" . }}active{{ end }}"> <a href="{{ .URL }}" class="nav-link {{ if $currentPage.IsMenuCurrent "nav" . }}active{{ end }}">
{{ .Name }} {{ .Name }}
</a> </a>
</li> </li>