Add OSM map on the Visit Us page

This commit is contained in:
2024-02-07 15:00:00 +00:00
parent b4626d9164
commit 1a0db21ec3
6 changed files with 68 additions and 11 deletions

View File

@@ -8,6 +8,11 @@
</script>
{{ end }}
{{ if .Page.Store.Get "hasMap" }}
<script src="https://cdn.jsdelivr.net/npm/ol@v8.2.0/dist/ol.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v8.2.0/ol.css">
{{ end }}
{{ $theme := resources.Get "js/theme.js" }}
{{ $site := resources.Get "js/site.js" }}
{{ $js := slice $site $theme | resources.Concat "js/bundle.js" | resources.Minify }}