{{ $logo_index := .logo_index }} {{ $options := .options }}
{{- range .organizations }} {{ if .slug }} {{ with (site.GetPage (printf "/organizations/%s" .slug )) }} {{ template "organization" dict "title" .Title "url" .Permalink "logo" (index .Params $logo_index) "latitude" .Params.contact_details.geolocation.latitude "longitude" .Params.contact_details.geolocation.longitude "summary" .Params.summary "options" $options }} {{ end }} {{ end }} {{ end -}}