{{ $location := .location }} {{ $heading := .heading | default "h2" }} {{ $heading_tag := (dict "open" ((printf "<%s itemprop='headline' class='location-title'>" $heading) | safeHTML) "close" ((printf "" $heading) | safeHTML) ) }} {{ with $location }}
{{- $title := partial "PrepareHTML" .Title -}} {{ $heading_tag.open }} {{ $title }} {{ $heading_tag.close }} {{- if (partial "GetTextFromHTML" .Params.summary) -}}

{{ partial "GetTruncateContent" ( dict "text" .Params.summary "length" site.Params.locations.index.truncate_description ) }}

{{- end -}}
{{- if .Params.image -}} {{- partial "commons/image.html" (dict "image" .Params.image "sizes" site.Params.image_sizes.sections.locations.item ) -}} {{- else -}} {{- partial "commons/image-default.html" "locations" -}} {{- end -}}
{{ end }}