{{ define "main" }} {{- $issue := index (.Params.issues | default (slice "01")) 0 }} {{- $issueURL := printf "/issues/%s/" $issue }} {{- $img := .Resources.GetMatch "*.png" }} {{- $cardSrc := "" }} {{- if $img }}{{- $c := $img.Resize "900x1350 webp" }}{{- $cardSrc = $c.RelPermalink }}{{- end }} № {{ $issue }} · {{ index (.Params.categories | default (slice "Plate")) 0 }} {{ .Title }} {{ .Params.description }} ← Return to issue {{- if $cardSrc }} View full image {{- end }} {{- $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 }}
{{ .Params.description }}