{{ $options := site.Params.persons.index.options }} {{ if eq site.Params.persons.index.layout "list" }}
    {{ range .persons }}
  1. {{ partial "PrepareHTML" .Title }}

    {{- if and $options.summary (partial "GetTextFromHTML" .Params.summary) }}

    {{- .Params.summary | safeHTML -}}

    {{ end -}}
  2. {{ end }}
{{ else if eq site.Params.persons.index.layout "grid" }}
{{ range .persons }} {{ partial "persons/person" (dict "person" .) }} {{ end }}
{{ end }}