{{ $location := . }} {{ with $location }}
{{- $title := partial "PrepareHTML" .Title -}}

{{ $title }}

{{- 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 }}