Change the default menu style to links

This commit is contained in:
Will Faught
2024-04-09 00:26:12 -07:00
parent 77d7592fc4
commit 2de472bab2
2 changed files with 5 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
{{ $page := . }}
{{ $basepath := path.Clean (urls.Parse (relLangURL "")).Path }}
{{ $links := false }}
{{ $pills := false }}
{{ $tabs := false }}
{{ $underline := false }}
@@ -18,11 +19,11 @@
{{ $tabs = true }}
{{ else if eq . "underline" }}
{{ $underline = true }}
{{ else if ne . "links" }}
{{ errorf "layouts/partials/paige/menu.html: invalid menu style: %q" . }}
{{ else }}
{{ $links = true }}
{{ end }}
{{ else }}
{{ $pills = true }}
{{ $links = true }}
{{ end }}
{{ with site.Menus.main }}