{{ $logo_index := .logo_index }} {{ $options := .options }} {{ $block_index := .block_index }} {{ $id_transcription := printf "block-%d-transcription" $block_index }} {{ $heading_level := .heading_level | default 2 }} {{/* In map layout, all organization should have .path to get coordinates */}} {{ $organizations := where (default slice .organizations) "path" "ne" nil }} {{ if $organizations }}
{{ $title := printf "%s %d" (i18n "blocks.organizations.title") $block_index }} {{ if .title }} {{ $title = .title }} {{ end }} {{ $aria_label := i18n "commons.maps.label" $title }}
{{- range $organizations }} {{ with site.GetPage .path }} {{ $address_geolocation := .Params.contact_details.postal_address.geolocation }} {{ if $address_geolocation }} {{ partial "organizations/list/item/organization.html" (dict "organization" . "options" $options "with_geolocation" true "heading_level" $heading_level ) }} {{ end }} {{ end }} {{ end -}}
{{ end }}