Replace site.Params with $page.Param

This commit is contained in:
Will Faught
2023-01-29 15:10:01 -08:00
parent 4d3bb0d4f3
commit 0a01c70f39
7 changed files with 55 additions and 51 deletions

View File

@@ -1,5 +1,7 @@
{{ $page := . }}
{{ $basepath := path.Clean (urls.Parse site.BaseURL).Path }}
{{ $breakpoint := site.Params.paige.menu_breakpoint | default "sm" }}
{{ $breakpoint := $page.Param "paige.menu_breakpoint" | default "sm" }}
{{ $links := false }}
{{ $pills := false }}
@@ -7,7 +9,7 @@
{{ $basepath = "" }}
{{ end }}
{{ with site.Params.paige.menu_style }}
{{ with $page.Param "paige.menu_style" }}
{{ if eq . "links" }}
{{ $links = true }}
{{ else if eq . "pills" }}