Skip to content

Commit

Permalink
Merge pull request #192 from PDOK/PDOK/keywords_style_metadata_html
Browse files Browse the repository at this point in the history
Keywords in style metadata html page
  • Loading branch information
kad-korpem authored May 16, 2024
2 parents ac57d25 + a40ac0e commit 6411d02
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/config_all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ ogcApi:
supportedStyles:
- id: "dummy-style"
title: "Dummy style"
keywords:
- keyword1
- keyword2
lastUpdated: "2023-02-24T11:27:00Z"
formats:
- format: "mapbox"
10 changes: 10 additions & 0 deletions internal/ogc/styles/templates/styleMetadata.go.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ <h1 class="title" id="title">{{ .Config.Title }} - {{ .Params.Metadata.Title }}
{{ markdown .Params.Metadata.Description }}
<table class="table table-borderless table-sm w-100">
<tbody>
{{ if .Params.Metadata.Keywords }}
<tr>
<td class="w-25 text-nowrap fw-bold">
{{ i18n "Keywords" }}
</td>
<td>
{{ .Params.Metadata.Keywords | join ", " }}
</td>
</tr>
{{ end }}
{{ if .Params.Metadata.LastUpdated }}
<tr>
<td class="w-25 text-nowrap fw-bold">
Expand Down

0 comments on commit 6411d02

Please sign in to comment.