redact locations in location view

This commit is contained in:
Ben Goldsworthy 2025-02-21 23:18:16 +01:00
parent 07c6aa6d45
commit 8f593203b5
Signed by: Rumperuu
SSH key fingerprint: SHA256:v3uompaUiPqV2w1/AIRWBSQOxr2dntH9Xs/y8fDnUPU
3 changed files with 12 additions and 9 deletions

View file

@ -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.

View file

@ -41,6 +41,7 @@
{{- end -}}
{{- range $k, $v := .items -}}
{{- if not ( isset $v "redact" ) -}}
<li itemscope itemtype="https://schema.org/Place">
{{- $k -}}
{{- if ( not ( isset $v "lat" ) ) -}}
@ -48,6 +49,7 @@
{{- end -}}
</li>
{{- end -}}
{{- end -}}
{{- if ( eq $listType "unordered" ) -}}
</ul>