diff --git a/layouts/partials/paige/menu.html b/layouts/partials/paige/menu.html index 8dc629ab..f3bfc353 100644 --- a/layouts/partials/paige/menu.html +++ b/layouts/partials/paige/menu.html @@ -1,15 +1,16 @@ -{{ $p := . }} -{{ $basePath := path.Clean (urls.Parse .Site.BaseURL).Path }} -{{ if eq $basePath "/" }} - {{ $basePath = "" }} -{{ end }} +{{ $basepath := path.Clean (urls.Parse .Site.BaseURL).Path }} {{ $links := false }} {{ $pills := false }} {{ $tabs := false }} + +{{ if eq $basepath "/" }} + {{ $basepath = "" }} +{{ end }} + {{ with .Site.Params.paige.menu_style }} - {{ if eq . `links` }} + {{ if eq . "links" }} {{ $links = true }} - {{ else if eq . `tabs` }} + {{ else if eq . "tabs" }} {{ $tabs = true }} {{ else }} {{ $pills = true }} @@ -17,10 +18,11 @@ {{ else }} {{ $pills = true }} {{ end }} +