--- themes/cupper-hugo-theme/layouts/partials/nav.html 2022-12-05 19:58:23.175031691 +0100
+++ themes/cupper-hugo-theme/layouts/partials/nav.html 2022-12-08 13:03:13.995570393 +0100
@@ -11,8 +11,7 @@
{{ range .Site.Menus.nav }}
{{ $active := or ($current.IsMenuCurrent "nav" .) ($current.HasMenuCurrent "nav" .) }}
- {{ $active = or $active (eq .Name $current.Title) }}
- {{ $active = or $active (and (eq .Name "Blog") (eq $current.Section "post")) }}
+ {{ $active = or $active (eq .URL $current.RelPermalink) }}
{{ $active = or $active (and (eq .Name "Tags") (eq $current.Section "tags")) }}
{{ end }}
-
\ No newline at end of file
+