From 478c46f6cabec5d0cdd88575ece4dc2b8459eed9 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Wed, 25 Jan 2023 16:53:48 -0800 Subject: [PATCH] Use quotes for string literals --- layouts/partials/paige/menu.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/paige/menu.html b/layouts/partials/paige/menu.html index ab71dbc9..3ee8b652 100644 --- a/layouts/partials/paige/menu.html +++ b/layouts/partials/paige/menu.html @@ -23,7 +23,7 @@ {{ range .Site.Menus.main }} {{ $pagePath := strings.TrimPrefix $basepath $.RelPermalink }} {{ $menuPath := strings.TrimPrefix $basepath .URL }} - {{ $active := or (and (eq $menuPath `/`) (eq $pagePath `/`)) (and (ne $menuPath `/`) (hasPrefix $pagePath $menuPath)) }} + {{ $active := or (and (eq $menuPath "/") (eq $pagePath "/")) (and (ne $menuPath "/") (hasPrefix $pagePath $menuPath)) }} {{ .Name }} {{ end }}