{{ define "main" }}
{{ if .Params.avatar -}} {{ $image := .Resources.GetMatch (printf "**%s" .Params.avatar) -}} {{ $imageLq := $image.Resize "15x15 webp q95" -}} {{ $image = $image.Resize "300x300 webp q95" -}}
{{ .Title }}
{{ end -}} {{ with .Params.headline -}}

{{ . }}

{{ else -}}

{{ .Title }}

{{ end -}} {{ with .Params.summary -}}

{{ . }}

{{ end -}} {{ with .Content -}}
{{ . }}
{{ end -}}
{{ $paginator := .Paginate (.Data.Pages) -}} {{ range $paginator.Pages -}}
{{ $image := .Resources.GetMatch (printf "**%s" (index .Params.images 0)) -}} {{ if $image -}} {{ partial "picture" (dict "ctx" . "src" $image "alt" .Title "class" "img-fluid blur-up w-100 h-auto rounded-0" )}} {{ end -}}
{{ end -}}
{{ template "_internal/pagination.html" . }}
{{ end }}