Remove useless variable

This commit is contained in:
Will Faught
2023-08-12 13:46:46 -07:00
parent fd38a51b2a
commit 30eaf84c66

View File

@@ -1,7 +1,6 @@
{{ $page := . }} {{ $page := . }}
{{ $basepath := path.Clean (urls.Parse site.BaseURL).Path }} {{ $basepath := path.Clean (urls.Parse site.BaseURL).Path }}
{{ $links := false }}
{{ $pills := false }} {{ $pills := false }}
{{ $tabs := false }} {{ $tabs := false }}
{{ $underline := false }} {{ $underline := false }}
@@ -13,14 +12,14 @@
{{ $pagepath := strings.TrimPrefix $basepath $page.RelPermalink }} {{ $pagepath := strings.TrimPrefix $basepath $page.RelPermalink }}
{{ with $page.Param "paige.menu.style" }} {{ with $page.Param "paige.menu.style" }}
{{ if eq . "links" }} {{ if eq . "pills" }}
{{ $links = true }} {{ $pills = true }}
{{ else if eq . "tabs" }} {{ else if eq . "tabs" }}
{{ $tabs = true }} {{ $tabs = true }}
{{ else if eq . "underline" }} {{ else if eq . "underline" }}
{{ $underline = true }} {{ $underline = true }}
{{ else }} {{ else if ne . "links" }}
{{ $pills = true }} {{ errorf "layouts/partials/paige/menu.html: invalid menu style: %q" . }}
{{ end }} {{ end }}
{{ else }} {{ else }}
{{ $pills = true }} {{ $pills = true }}