{{ define "main" }} {{/* Individual post page — grid renders in background, JS opens lightbox for this slug */}} {{ index (.Params.categories | default (slice "Plate")) 0 }} {{ .Title }} {{ .Params.description }} Return to archive → {{- $posts := where .Site.RegularPages "Section" "posts" }} {{- range $i, $p := $posts }} {{- $img := $p.Resources.GetMatch "*.png" }} {{- if $img }} {{- $w := $img.Resize "600x900 webp" }} {{- end }} PLATE №{{ $p.Params.plate }} {{ index ($p.Params.categories | default (slice "")) 0 }} {{ $p.Title }} {{ index ($p.Params.categories | default (slice "")) 0 }} {{- if $p.Params.tags }}{{ index $p.Params.tags 0 }}{{ end }} {{ $p.Params.description }} {{- end }} {{/* Tell JS which slug to open in the lightbox */}} {{ end }}
{{ .Params.description }} Return to archive →
{{ $p.Params.description }}