{{ define "main" }} {{- $issue := index (.Params.issues | default (slice "01")) 0 }} {{- $issueURL := printf "/issues/%s/" $issue }}
№ {{ $issue }} · {{ index (.Params.categories | default (slice "Plate")) 0 }}

{{ .Title }}

{{ .Params.description }} Return to issue →

{{- $termPage := $.Site.GetPage (printf "/issues/%s" $issue) }} {{- $posts := cond (ne $termPage nil) $termPage.Pages .Site.RegularPages }} {{- range $i, $p := $posts }} {{- partial "card.html" (dict "Page" $p "Index" $i) }} {{- end }}
{{/* Tell JS which slug to open in the lightbox */}} {{ end }}