{{ $image := partialCached "helper/image" (dict "Context" .context "Type" .Type) .context.RelPermalink .Type }}
{{ if $image.exists }}
{{ if $image.resource }} {{- $imageRaw := $image.resource | resources.Fingerprint "md5" -}} {{- $Permalink := $imageRaw.RelPermalink -}} {{- $Width := $imageRaw.Width -}} {{- $Height := $imageRaw.Height -}} {{- if (default true .Page.Site.Params.imageProcessing.cover.enabled) -}} {{- $thumbnail := $imageRaw.Fill .size -}} {{- $Permalink = $thumbnail.RelPermalink -}} {{- $Width = $thumbnail.Width -}} {{- $Height = $thumbnail.Height -}} {{- end -}} {{ else }} {{ end }}
{{ end }}

{{- .context.Title -}}