diff --git a/README.md b/README.md index 7a29ea5b..456e5bd8 100644 --- a/README.md +++ b/README.md @@ -300,7 +300,7 @@ url = "" commit_url = "" # Example is "https://github.com/willfaught/paige/commit/%s" [paige.menu] -style = "pills" # Must be "links", "pills", "tabs", or "underline" +style = "links" # Must be "links", "pills", "tabs", or "underline" [paige.search] hide_page = false diff --git a/layouts/partials/paige/menu.html b/layouts/partials/paige/menu.html index 2faad066..6b1e455e 100644 --- a/layouts/partials/paige/menu.html +++ b/layouts/partials/paige/menu.html @@ -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 }}