{{- $block := .block -}} {{- $block_class := partial "GetBlockClass" .block -}} {{- with .block.data -}}
{{ partial "blocks/top.html" (dict "title" $block.title "heading_level" $block.ranks.self "sr_only" true )}}
{{ range .testimonials }} {{ $aria_label := "" }} {{ if and .author .job }} {{ $aria_label = delimit (slice .author .job) ", " }} {{ else }} {{ with or .author .job }} {{ $aria_label = . }} {{ end }} {{ end }}
{{ $is_long := gt (len .text) 150 }}
{{- partial "PrepareHTML" .text -}}
{{ if or .photo .author .job -}}
{{ if .photo -}}
{{- partial "commons/image.html" (dict "image" .photo "sizes" site.Params.image_sizes.blocks.testimonials ) -}}
{{- end }} {{ if or .author .job -}}

{{- if .author -}} {{ partial "PrepareHTML" .author }} {{- end }} {{- if .job -}} {{- partial "PrepareHTML" .job -}} {{- end }}

{{- end }}
{{ end }}
{{ end }}
{{- end -}}