{{- $block := .block -}} {{- $image_class := "" -}} {{- $block_class := partial "GetBlockClass" .block -}} {{- with .block.data -}} {{- $text := .text -}} {{- $buttons := and .button.text .button_secondary.text -}} {{- if .image -}} {{- $image_class = printf "image-%s" (partial "GetImageDirection" .image ) -}} {{- end -}}
{{ partial "blocks/top.html" (dict "title" $block.title "heading_level" $block.ranks.self )}} {{- with .image -}}
{{ if not site.Params.image_sizes.design_system.lightbox.disabled }} {{ end }} {{ partial "commons/image.html" (dict "image" . "alt" .alt "sizes" site.Params.image_sizes.blocks.image )}} {{ if not site.Params.image_sizes.design_system.lightbox.disabled }} {{ end }}
{{- if $text }} {{ partial "PrepareHTML" $text }} {{ end -}} {{- if partial "PrepareHTML" .credit }}
{{ partial "PrepareHTML" .credit }}
{{ end -}}
{{- end -}}
{{- end -}}