2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-03 20:23:23 +00:00

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

This commit is contained in:
TorchedSammy 2022-06-22 15:34:22 -04:00
parent 50fbe72aa2
commit 09f5a3102e
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -13,7 +13,7 @@
{{ $currentPage := . }}
{{ range .Site.Menus.nav }}
<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 }}
</a>
</li>