fix: define section

This commit is contained in:
Ben Goldsworthy 2025-02-16 12:15:31 +01:00
parent eff55debea
commit 398bf1653b
Signed by: Rumperuu
SSH key fingerprint: SHA256:v3uompaUiPqV2w1/AIRWBSQOxr2dntH9Xs/y8fDnUPU

View file

@ -50,6 +50,7 @@
{{ .Scratch.Set "page" .Page.Slug }} {{ .Scratch.Set "page" .Page.Slug }}
{{ if ( in "current log wishlist" ( .Scratch.Get "page" ) ) }} {{ if ( in "current log wishlist" ( .Scratch.Get "page" ) ) }}
{{ .Scratch.Set "section" .Page.Section }}
{{ .Scratch.Get .Page.Slug }} {{ .Scratch.Get .Page.Slug }}
{{ if ( eq ( .Scratch.Get "page" ) "current" ) }} {{ if ( eq ( .Scratch.Get "page" ) "current" ) }}
{{ .Scratch.Set "listMode" "current" }} {{ .Scratch.Set "listMode" "current" }}