Combine menu params into one object

This commit is contained in:
Will Faught
2023-02-05 12:11:34 -08:00
parent 77a1c50a49
commit 7ddd1e5829
2 changed files with 5 additions and 4 deletions

View File

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