{{- $position := .position -}} {{- $title := .title -}} {{- $is_carousel := false -}} {{- with .data -}} {{ if gt (len .testimonials) 1 }} {{- $is_carousel = true -}} {{ end }}
{{ if $title -}}

{{ partial "PrepareHTML" $title }}

{{ end -}}
{{- if $is_carousel }}
{{ end -}} {{ range .testimonials }} {{ $is_long := gt (len .text) 150 }}

{{- partial "PrepareHTML" .text -}}

{{ if or .photo .author .job -}}
{{ if .photo -}}
{{- partial "commons/image.html" (dict "image" .photo "alt" .author "mobile" "192x192" "tablet" "192x192" "desktop" "192x192" ) -}}
{{- end }} {{ if or .author .job -}} {{- if .author -}} {{ partial "PrepareHTML" .author }}
{{- end }} {{- partial "PrepareHTML" .job -}}
{{- end }}
{{ end }} {{ end }} {{- if $is_carousel }}
{{ end -}}
{{- end -}}