{{- $block := .block -}} {{- $block_class := partial "GetBlockClass" .block -}} {{- with .block.data -}} {{- $buttons := and .button.text .button_secondary.text -}}
{{ partial "blocks/top.html" (dict "title" $block.title "heading_level" $block.ranks.self "description" .text )}} {{- 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 "sizes" site.Params.image_sizes.blocks.call_to_action )}}
{{- end -}}