diff --git a/content/locations/_index.md b/content/locations/_index.md index b800e3a..9e4b40a 100644 --- a/content/locations/_index.md +++ b/content/locations/_index.md @@ -4,4 +4,5 @@ date: 2024-02-13 layout: locations --- -Test +This page shows a geospatial visualisation of where the various things recorded +on this site took place. diff --git a/layouts/partials/util/get_location_by_index.html b/layouts/partials/util/get_location_by_index.html index 782cce1..da54992 100644 --- a/layouts/partials/util/get_location_by_index.html +++ b/layouts/partials/util/get_location_by_index.html @@ -2,13 +2,13 @@ {{- $location := .Params.location }} {{- range $k, $v := $locations -}} - {{- if ( isset $v "lat" ) -}} - {{- partialCached "util/get_location_by_index.html" ( dict "locations" $v "location" $location ) $location -}} - {{- else if ( eq $k $location ) -}} - {{- with $v -}} - {{- return . -}} - {{- else -}} - {{- warnf "Location %q has no co-ordinates set" $k -}} - {{- end -}} + {{- if ( isset $v "lat" ) -}} + {{- partialCached "util/get_location_by_index.html" ( dict "locations" $v "location" $location ) $location -}} + {{- else if ( eq $k $location ) -}} + {{- with $v -}} + {{- return . -}} + {{- else -}} + {{- warnf "Location %q has no co-ordinates set" $k -}} {{- end -}} + {{- end -}} {{- end -}} diff --git a/layouts/partials/util/render_recursive_list.html b/layouts/partials/util/render_recursive_list.html index c33e9d3..8dc2882 100644 --- a/layouts/partials/util/render_recursive_list.html +++ b/layouts/partials/util/render_recursive_list.html @@ -41,12 +41,14 @@ {{- end -}} {{- range $k, $v := .items -}} + {{- if not ( isset $v "redact" ) -}}
  • {{- $k -}} {{- if ( not ( isset $v "lat" ) ) -}} {{- partial "util/render_recursive_list.html" ( dict "sc" $.sc "pc" $.pc "items" $v "schemaType" $schemaType "listType" $listType ) -}} {{- end -}}
  • + {{- end -}} {{- end -}} {{- if ( eq $listType "unordered" ) -}}