{{ $options := .options | default site.Params.persons.index.options }} {{ $heading := .heading_level | default 2 }} {{ $heading_tag := (dict "open" ((printf "" $heading) | safeHTML) "close" ((printf "" $heading) | safeHTML) ) }} {{ $person := .person }}
{{ $heading_tag.open }} {{ if $options.link }} {{ end }} {{ partial "PrepareHTML" $person.Title }} {{ if $options.link }} {{ end }} {{ $heading_tag.close }} {{ if $options.summary }}

{{ if (partial "GetTextFromHTML" .role) }} {{ partial "PrepareHTML" .role }} {{ else if partial "GetTextFromHTML" $person.Params.summary }} {{ partial "PrepareHTML" $person.Params.summary }} {{ else if partial "GetTextFromHTML" $person.Content }} {{ partial "GetTruncateContent" ( dict "text" $person.Content ) }} {{ end }}

{{ end }}
{{ if $options.image }}
{{ if $person.Params.image }} {{ partial "commons/image.html" (dict "image" $person.Params.image "sizes" site.Params.image_sizes.blocks.persons ) }} {{ end }}
{{ end }}