{{ $title := "" }} {{ if .Params.title }}
{{ $title = partial "PrepareHTML" .Params.title -}}

{{- if and .Params.url .Params.with_link }} {{ end -}} {{- $title -}} {{- if .Params.url }} {{ end -}}

{{ with .Params.contact_details }} {{ .address.value }} {{ .zipcode.value }} {{ .city.value }} {{ end }}
{{ end -}} {{- if .Params.image -}}
{{- partial "commons/image.html" (dict "image" .Params.image "alt" $title "sizes" site.Params.image_sizes.sections.locations.map ) -}}
{{- end -}}