Move paige.menu to header

master
Will Faught 2 years ago
parent e9d9be59cc
commit 9640d143f0

@ -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:

@ -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" }}

Loading…
Cancel
Save