{{ $image := partial "helper/image" (dict "Image" .Params.image "Resources" .Resources "Context" .) }}
{{ if $image }}
{{ partial "helper/thumbnail-image" (dict "Resource" $image.Resource "Width" 250 "Height" 150 "Resize" .Site.Params.ImageProcessing.Thumbnail.Enabled "Attributes" (dict "src" $image.Permalink "alt" (printf "Featured image of post %s" .Title) "loading" "lazy" "width" $image.Width "height" $image.Height ) ) }}
{{ end }}

{{- .Title -}}