Add a generic tour-map shortcode and a data format to supply the necessary info
All checks were successful
/ build (pull_request) Successful in 27s

This commit is contained in:
Stefan Bethke 2026-10-16 20:21:21 +02:00
commit 14aed5e649
15 changed files with 1433 additions and 2 deletions

View file

@ -0,0 +1,10 @@
{{- /* Leaflet and the script for the tour-map shortcode, included by the base templates on pages that use it. */ -}}
{{- with resources.Get "vendor/leaflet/leaflet.css" | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{- end }}
{{- with resources.Get "vendor/leaflet/leaflet.js" | fingerprint }}
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" defer></script>
{{- end }}
{{- with resources.Get "js/tour-map.js" | minify | fingerprint }}
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" defer></script>
{{- end }}