{{- $context := .context -}} {{- $position := .block.position -}} {{- $title := .block.title -}} {{- with .block.data -}} {{- $with_link := .with_link -}}
{{ if (or $title .description) -}}
{{ partial "blocks/title" (dict "title" $title "context" $context ) }} {{- if .description }}
{{ partial "PrepareHTML" .description }}
{{ end -}}
{{- end }}
{{- range .persons -}} {{ $person := site.GetPage (printf "/persons/%s" .slug) }}

{{ if $with_link }} {{ end }} {{- partial "PrepareHTML" $person.Title -}} {{ if $with_link }} {{ end }}

{{- if (partial "GetTextFromHTML" .role) }} {{ partial "PrepareHTML" .role }} {{- else if partial "GetTextFromHTML" $person.Params.description_short }} {{- partial "PrepareHTML" $person.Params.description_short -}} {{ else if (partial "GetTextFromHTML" $person.Content) }} {{- partial "GetTruncateContent" $person.Content -}} {{ end -}}

{{- if $person.Params.image }} {{ partial "commons/image.html" (dict "image" $person.Params.image "mobile" "80x80" "tablet" "100x100" "desktop" "255x255" )}} {{ end -}}
{{- end -}}
{{- end -}}