{{ 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 -}}
{{ if site.Params.doks.imageList -}} {{- $images := .Resources.ByType "image" -}} {{- $featured := $images.GetMatch "*feature*" -}} {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} {{- if $featured -}} {{ partial "img" (dict "page" . "src" $featured "alt" .Title "class" "rounded-top-1" )}} {{ end -}} {{ end -}}
{{ end -}}
{{ template "_internal/pagination.html" . }}
{{ end }}