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
All checks were successful
/ build (pull_request) Successful in 27s
This commit is contained in:
parent
a3978700b3
commit
14aed5e649
15 changed files with 1433 additions and 2 deletions
10
layouts/_partials/tour-map-script.html
Normal file
10
layouts/_partials/tour-map-script.html
Normal 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 }}
|
||||
Loading…
Reference in a new issue