From ba0dd5afe855da2145d40768d99a53114347d925 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Mon, 3 Jun 2024 20:06:50 -0700 Subject: [PATCH] Move menu.style config to menu_style --- README.md | 4 +--- layouts/partials/paige/menu.html | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6a68170b..19abeae9 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,7 @@ external_link_new_tab = false # Open external links in new tabs file_edit_url = "" # Example is "https://github.com/willfaught/paige/edit/master/content/%s" keyword_style = "text" # Must be "text" or "pills" math = false # Enable math typesetting +menu_style = "links" # Must be "links", "pills", "tabs", or "underline" site_title = "" # Appears above the menu, above the site description, if set site_description = "" # Appears above the menu, below the site title, if set style = "" # CSS included at the end of the stylesheet, before style-last.css @@ -283,9 +284,6 @@ logo = "" # Example is "/logo.webp" managing_editor = "" # Example is "will.faught@example.com (Will Faught)" web_master = "" # Example is "will.faught@example.com (Will Faught)" -[paige.menu] -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 5d0b7511..c6e526e3 100644 --- a/layouts/partials/paige/menu.html +++ b/layouts/partials/paige/menu.html @@ -12,7 +12,7 @@ {{ $pagepath := strings.TrimPrefix $basepath $page.RelPermalink }} -{{ with $page.Param "paige.menu.style" }} +{{ with $page.Param "paige.menu_style" }} {{ if eq . "pills" }} {{ $pills = true }} {{ else if eq . "tabs" }}