From 9640d143f04413218f00cb7cf95927c456dd7077 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 5 Feb 2023 19:36:04 -0800 Subject: [PATCH] Move paige.menu to header --- README.md | 7 ++++--- layouts/partials/paige/menu.html | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2b1a76af..44c9f4aa 100644 --- a/README.md +++ b/README.md @@ -290,9 +290,10 @@ paige: class: "mb-0 text-center" # Default is "mb-0 text-center" hide: false # Default is false math: false # Enable math typesetting; default is false - menu: - breakpoint: "sm" # Bootstrap breakpoint at which to display all menu items; default is "sm" - style: "pills" # Menu item style; must be "links" or "pills"; default is "pills" + header: + menu: + breakpoint: "sm" # Bootstrap breakpoint at which to display all menu items; default is "sm" + style: "pills" # Menu item style; must be "links" or "pills"; default is "pills" main: metadata: authors: diff --git a/layouts/partials/paige/menu.html b/layouts/partials/paige/menu.html index ee21c5e7..737aae78 100644 --- a/layouts/partials/paige/menu.html +++ b/layouts/partials/paige/menu.html @@ -1,7 +1,7 @@ {{ $page := . }} {{ $basepath := path.Clean (urls.Parse site.BaseURL).Path }} -{{ $breakpoint := $page.Param "paige.menu.breakpoint" | default "sm" }} +{{ $breakpoint := $page.Param "paige.header.menu.breakpoint" | default "sm" }} {{ $links := false }} {{ $pills := false }} @@ -9,7 +9,7 @@ {{ $basepath = "" }} {{ end }} -{{ with $page.Param "paige.menu.style" }} +{{ with $page.Param "paige.header.menu.style" }} {{ if eq . "links" }} {{ $links = true }} {{ else if eq . "pills" }}