{{- $context := .context -}} {{- $position := .block.position -}} {{- $title := .block.title -}} {{- with .block.data -}} {{- $buttons := and .button.text .button_secondary.text -}}
{{/* TODO: refactor */}} {{- with .image -}} {{- $image := partial "GetMedia" .file -}} {{- $url := $image.url -}} {{- if site.Params.keycdn -}} {{- $url = $image.direct_url -}} {{- end -}} {{- $lightbox_sizes := "2048x3640" -}}
{{ partial "commons/image.html" (dict "image" . "alt" .alt "mobile" "480x850" "tablet" "768x1360" "desktop" "1024x1820" )}}
{{- if $title }}

{{ partial "PrepareHTML" $title }}

{{ end -}} {{- if partial "PrepareHTML" .credit }}
{{ partial "PrepareHTML" .credit }}
{{ end -}}
{{- end -}}
{{- end -}}