Combine menu params into one object

master
Will Faught 2 years ago
parent 77a1c50a49
commit 7ddd1e5829

@ -297,8 +297,9 @@ paige:
class: "text-center" # Default is "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"
menu_style: "pills" # Menu item style; must be "links" or "pills"; default is "pills"
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"
metadata_max_width: "100ch" # Page metadata max width; default is ""
page:
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.menu.breakpoint" | default "sm" }}
{{ $links := false }}
{{ $pills := false }}
@ -9,7 +9,7 @@
{{ $basepath = "" }}
{{ end }}
{{ with $page.Param "paige.menu_style" }}
{{ with $page.Param "paige.menu.style" }}
{{ if eq . "links" }}
{{ $links = true }}
{{ else if eq . "pills" }}

Loading…
Cancel
Save