Add paigelistmath scratch variable

This commit is contained in:
Will Faught
2022-12-14 19:44:19 -08:00
parent b84f301a64
commit 7bd1316b13
2 changed files with 5 additions and 1 deletions

View File

@@ -1,7 +1,11 @@
{{ if .Pages }}
{{ if .Params.paigeshowfullpages }}
{{ $page := . }}
{{ $p := .Paginate .Pages }}
{{ range $p.Pages }}
{{ if .Params.math }}
{{ $page.Scratch.Set "paigelistmath" true }}
{{ end }}
{{ partial "paige-main.html" . }}
{{ end }}
{{ if or $p.HasPrev $p.HasNext }}