2026-05-18 16:27:47 +02:00
|
|
|
{{- $posts := slice }}
|
|
|
|
|
{{- range (where .Site.RegularPages "Section" "posts") }}
|
|
|
|
|
{{- $img := .Resources.GetMatch "*.png" }}
|
|
|
|
|
{{- $thumb := "" }}
|
|
|
|
|
{{- $card := "" }}
|
|
|
|
|
{{- if $img }}
|
|
|
|
|
{{- $t := $img.Resize "300x450 webp" }}
|
|
|
|
|
{{- $c := $img.Resize "900x1350 webp" }}
|
|
|
|
|
{{- $thumb = $t.RelPermalink }}
|
|
|
|
|
{{- $card = $c.RelPermalink }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- $post := dict
|
|
|
|
|
"id" .Params.plate
|
|
|
|
|
"slug" .Params.slug
|
2026-08-29 21:11:24 +02:00
|
|
|
"issue" (index (.Params.issues | default (slice "01")) 0)
|
2026-05-18 16:27:47 +02:00
|
|
|
"title" .Title
|
|
|
|
|
"description" .Params.description
|
|
|
|
|
"categories" .Params.categories
|
|
|
|
|
"tags" .Params.tags
|
|
|
|
|
"thumb" $thumb
|
|
|
|
|
"card" $card
|
|
|
|
|
"url" .RelPermalink
|
|
|
|
|
}}
|
|
|
|
|
{{- $posts = $posts | append $post }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- $posts | jsonify }}
|