From 93b4e2098f4e0bb89f216ccd0f0f23b92235f92c Mon Sep 17 00:00:00 2001 From: Richard Kettelerij Date: Tue, 1 Oct 2024 13:29:16 +0200 Subject: [PATCH] feat: add extra fields --- .../ogc/common/geospatial/templates/collection.go.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/internal/ogc/common/geospatial/templates/collection.go.html b/internal/ogc/common/geospatial/templates/collection.go.html index 05c4fd3d..ffe42171 100644 --- a/internal/ogc/common/geospatial/templates/collection.go.html +++ b/internal/ogc/common/geospatial/templates/collection.go.html @@ -36,8 +36,14 @@ {{- if .Config.Support }} "creator":{ "@type":"Organization", - "name":"{{ .Config.Support.Name }}" - } + "name":"haha {{ .Config.Support.Name }}" + }, + {{- end }} + {{- if and .Params.Metadata .Params.Metadata.Thumbnail }} + "thumbnail": "resources/{{ .Params.Metadata.Thumbnail }}", + {{- end }} + {{- if and .Params.Metadata .Params.Metadata.LastUpdated }} + "version": "{{ toDate "2006-01-02T15:04:05Z07:00" .Params.Metadata.LastUpdated | date "2006-01-02" }}" {{- end }} }