From 7d561b6fecb926dacbdf715856ffff79afde63ae Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Thu, 20 Feb 2025 23:45:10 +0100 Subject: [PATCH] feat: redact locations --- layouts/partials/util/get_location_leaf_nodes.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/partials/util/get_location_leaf_nodes.html b/layouts/partials/util/get_location_leaf_nodes.html index 52917cb..3e09d7e 100644 --- a/layouts/partials/util/get_location_leaf_nodes.html +++ b/layouts/partials/util/get_location_leaf_nodes.html @@ -8,11 +8,13 @@ {{- $locations := ( dict ) -}} {{- range $k, $v := . -}} + {{- if not ( isset $v "redact" ) -}} {{- if ( isset $v "lat" ) -}} - {{- $locations = merge $locations ( dict $k $v ) -}} + {{- $locations = merge $locations ( dict $k $v ) -}} {{- else -}} - {{- $locations = merge $locations ( partial "util/get_location_leaf_nodes.html" . ) -}} + {{- $locations = merge $locations ( partial "util/get_location_leaf_nodes.html" . ) -}} {{- end -}} + {{- end -}} {{- end -}} {{- return $locations -}}