Move paige.menu to header
This commit is contained in:
@@ -290,6 +290,7 @@ 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
|
||||||
|
header:
|
||||||
menu:
|
menu:
|
||||||
breakpoint: "sm" # Bootstrap breakpoint at which to display all menu items; default is "sm"
|
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"
|
style: "pills" # Menu item style; must be "links" or "pills"; default is "pills"
|
||||||
|
@@ -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" }}
|
||||||
|
Reference in New Issue
Block a user