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

{{- .context.Title -}}