diff --git a/common-theme/layouts/partials/map-common.html b/common-theme/layouts/partials/map-common.html new file mode 100644 index 000000000..e69de29bb diff --git a/common-theme/layouts/partials/map.html b/common-theme/layouts/partials/map.html index 004835227..29a9e12af 100644 --- a/common-theme/layouts/partials/map.html +++ b/common-theme/layouts/partials/map.html @@ -1,29 +1 @@ -{{ with .Params.map }} -
-

👉🏾

- {{ range $i, $currentMapSectionName := . }} - {{ $currentMapSectionModules := index site.Menus $currentMapSectionName }} -
-

- 📍{{ $i }}: - {{ $currentMapSectionName }} -

-
    - {{/* Check if a menu for the current map section exists */}} - {{ if $currentMapSectionModules }} - {{/* Range over the items in the menu */}} - {{ range $iterator, $module := $currentMapSectionModules }} -
  1. - {{ partial "card.html" $module }} -
  2. - {{ end }} - {{ else }} -
  3. No items found for {{ $currentMapSectionName }}
  4. - {{ end }} -
-
- {{ end }} -
-{{ end }} +{{ partial "map-common.html" . }}