Skip to content
Snippets Groups Projects
Commit d88e9c18 authored by Alexis BENOIT's avatar Alexis BENOIT
Browse files

range only on organizations with path

parent 0e8e2b9e
No related branches found
No related tags found
No related merge requests found
{{ $logo_index := .logo_index }}
{{ $options := .options }}
{{ $block_index := .block_index }}
{{ $id_transcription := printf "block-%d-transcription" $block_index }}
{{/* In map layout, all organization should have .path to get coordinates */}}
{{ $organizations := where .organizations "path" "ne" nil }}
<div class="transcription">
<details id="{{- $id_transcription -}}" class="map-transcription">
<summary aria-controls="{{- $id_transcription -}}" aria-expanded="false" data-describedby=".block-title">
{{ i18n "commons.accessibility.map_transcription" }}
</summary>
<ul>
{{ range .organizations }}
{{ with and .slug (site.GetPage .path) }}
{{ range $organizations }}
{{ with site.GetPage .path }}
{{ $address_geolocation := .Params.contact_details.postal_address.geolocation }}
{{ if $address_geolocation }}
<li>
......@@ -43,8 +45,8 @@
role="region"
aria-label="{{ $aria_label }}"
>
{{- range .organizations }}
{{ with and .slug (site.GetPage .path) }}
{{- range $organizations }}
{{ with site.GetPage .path }}
{{ $address_geolocation := .Params.contact_details.postal_address.geolocation }}
{{ if $address_geolocation }}
{{ template "organization" dict
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment