{{- $context := .context -}} {{- $position := .block.position -}} {{- $title := .block.title -}} {{- with .block.data -}} {{- $buttons := and .button.text .button_secondary.text -}}
{{ partial "blocks/title" (dict "title" $title "context" $context ) }} {{- if (partial "GetTextFromHTML" .text) }}
{{ partial "PrepareHTML" .text }}
{{ end -}} {{- if .buttons }}
{{- range .buttons -}} {{ if .title }} {{- $title := partial "PrepareHTML" .title -}} {{ $title }} {{ end -}} {{- end -}}
{{- end -}}
{{ partial "commons/image.html" (dict "image" .image.file "alt" .image.alt "mobile" "164x164" "tablet" "336x336" "desktop" "416x416" )}}
{{- end -}}