{{ $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 }} {{ $role := .role }}
{{ $heading_tag.open }} {{ if $options.link }} {{ end }} {{ partial "PrepareHTML" $person.Title }} {{ if $options.link }} {{ end }} {{ $heading_tag.close }} {{ if and $options.summary (or $person.Params.biography $role $person.Params.summary) }}

{{ if (partial "GetTextFromHTML" $role) }} {{ partial "PrepareHTML" $role }} {{ else if partial "GetTextFromHTML" $person.Params.summary }} {{ partial "PrepareHTML" $person.Params.summary }} {{ 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 }}