From 9ca92df0f305fc73623621cb4bebe40b0b03e14e Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sat, 13 May 2023 14:07:39 -0700 Subject: [PATCH] Use pill menu for invalid style --- layouts/partials/paige/menu.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/layouts/partials/paige/menu.html b/layouts/partials/paige/menu.html index 097e6e56..a8f4494c 100644 --- a/layouts/partials/paige/menu.html +++ b/layouts/partials/paige/menu.html @@ -2,6 +2,7 @@ {{ $basepath := path.Clean (urls.Parse site.BaseURL).Path }} {{ $breakpoint := $page.Param "paige.menu.breakpoint" | default "sm" }} +{{ $links := false }} {{ $pills := false }} {{ $tabs := false }} {{ $underline := false }} @@ -13,14 +14,14 @@ {{ $pagepath := strings.TrimPrefix $basepath $page.RelPermalink }} {{ with $page.Param "paige.menu.style" }} - {{ if eq . "pills" }} - {{ $pills = true }} + {{ if eq . "links" }} + {{ $links = true }} {{ else if eq . "tabs" }} {{ $tabs = true }} {{ else if eq . "underline" }} {{ $underline = true }} - {{ else if ne . "links" }} - {{ errorf "layouts/partials/paige/menu.html: invalid menu style: %q" . }} + {{ else }} + {{ $pills = true }} {{ end }} {{ else }} {{ $pills = true }}