From 5bd6ab595d2251d939e6795138f6196d96eefd69 Mon Sep 17 00:00:00 2001 From: Michiel Korpel Date: Thu, 16 May 2024 16:42:22 +0200 Subject: [PATCH 1/2] fix(styles): include keywords in style metadata html page --- internal/ogc/styles/templates/styleMetadata.go.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/internal/ogc/styles/templates/styleMetadata.go.html b/internal/ogc/styles/templates/styleMetadata.go.html index 1fa1745d..6745c60d 100644 --- a/internal/ogc/styles/templates/styleMetadata.go.html +++ b/internal/ogc/styles/templates/styleMetadata.go.html @@ -14,6 +14,16 @@

{{ .Config.Title }} - {{ .Params.Metadata.Title }} {{ markdown .Params.Metadata.Description }} + {{ if .Params.Metadata.Keywords }} + + + + + {{ end }} {{ if .Params.Metadata.LastUpdated }}
+ {{ i18n "Keywords" }} + + {{ .Params.Metadata.Keywords | join ", " }} +
From a40ac0eeef3ec7f92d2c44b1c304f0e775d20bf9 Mon Sep 17 00:00:00 2001 From: Michiel Korpel Date: Thu, 16 May 2024 16:42:59 +0200 Subject: [PATCH 2/2] chore(test): add keywords to example style --- examples/config_all.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/config_all.yaml b/examples/config_all.yaml index 7ccb972e..68495fd5 100644 --- a/examples/config_all.yaml +++ b/examples/config_all.yaml @@ -91,6 +91,9 @@ ogcApi: supportedStyles: - id: "dummy-style" title: "Dummy style" + keywords: + - keyword1 + - keyword2 lastUpdated: "2023-02-24T11:27:00Z" formats: - format: "mapbox"