Change the default menu style to links

master
Will Faught 1 year ago
parent 77d7592fc4
commit 2de472bab2

@ -300,7 +300,7 @@ url = ""
commit_url = "" # Example is "https://github.com/willfaught/paige/commit/%s" commit_url = "" # Example is "https://github.com/willfaught/paige/commit/%s"
[paige.menu] [paige.menu]
style = "pills" # Must be "links", "pills", "tabs", or "underline" style = "links" # Must be "links", "pills", "tabs", or "underline"
[paige.search] [paige.search]
hide_page = false hide_page = false

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

Loading…
Cancel
Save