{{ define "main" }}

{{ .Title }}

{{ .Content }}
{{ range .Pages.ByDate.Reverse }} {{ $resource := partial "functions/get_featured_image.html" . }} {{ $anchor := .Params.image.focal_point | default "Center" }}
{{ with $resource }} {{ $image := .Fill (printf "655x655 %s" $anchor) }} {{ if ne $image.MediaType.SubType "gif" }}{{ $image = $image.Process "webp" }}{{ end }} {{ .Title | plainify }} {{end}}
{{ .Title }}

{{ (.Params.summary | default .Summary) | plainify | htmlUnescape | chomp -}}

{{- .Date | time.Format (site.Params.locale.date_format | default ":date_long") -}}

{{ end }}
{{ end }}