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" class: "mb-0 text-center" # Default is "mb-0 text-center"
hide: false # Default is false hide: false # Default is false
math: false # Enable math typesetting; default is false math: false # Enable math typesetting; default is false
menu: header:
breakpoint: "sm" # Bootstrap breakpoint at which to display all menu items; default is "sm" menu:
style: "pills" # Menu item style; must be "links" or "pills"; default is "pills" 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: main:
metadata: metadata:
authors: authors:

@ -1,7 +1,7 @@
{{ $page := . }} {{ $page := . }}
{{ $basepath := path.Clean (urls.Parse site.BaseURL).Path }} {{ $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 }} {{ $links := false }}
{{ $pills := false }} {{ $pills := false }}
@ -9,7 +9,7 @@
{{ $basepath = "" }} {{ $basepath = "" }}
{{ end }} {{ end }}
{{ with $page.Param "paige.menu.style" }} {{ with $page.Param "paige.header.menu.style" }}
{{ if eq . "links" }} {{ if eq . "links" }}
{{ $links = true }} {{ $links = true }}
{{ else if eq . "pills" }} {{ else if eq . "pills" }}

Loading…
Cancel
Save