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

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

{{- end -}}

{{- i18n "blocks.locations.button_location" -}}

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