2021-07-06 19:06:39 +00:00
|
|
|
{{ define "title" }}
|
2021-08-04 21:26:38 +00:00
|
|
|
<title>{{ mdtitle .Blog.Title }}</title>
|
2021-07-06 19:06:39 +00:00
|
|
|
{{ if not .Data.nolocations }}
|
2021-12-12 10:03:14 +00:00
|
|
|
<link rel="stylesheet" href="/-/leaflet/leaflet.css"/>
|
|
|
|
<script src="/-/leaflet/leaflet.js"></script>
|
2021-07-06 19:06:39 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
|
|
|
<main>
|
|
|
|
{{ if .Data.nolocations }}
|
|
|
|
<p>{{ string .Blog.Lang "nolocations" }}</p>
|
|
|
|
{{ else }}
|
2021-11-22 15:36:17 +00:00
|
|
|
<div class="p" id="map"
|
|
|
|
data-locations="{{ .Data.locations }}"
|
|
|
|
data-tracks="{{ .Data.tracks }}"
|
|
|
|
data-minzoom={{ .Data.minzoom }}
|
|
|
|
data-maxzoom={{ .Data.maxzoom }}
|
|
|
|
data-attribution="{{ .Data.attribution }}"
|
|
|
|
></div>
|
2021-07-06 19:06:39 +00:00
|
|
|
<script defer src="{{ asset "js/geomap.js" }}"></script>
|
|
|
|
{{ end }}
|
|
|
|
</main>
|
2022-01-09 20:08:38 +00:00
|
|
|
{{ if .CommentsEnabled }}{{ interactions .Blog .Canonical }}{{ end }}
|
2021-07-06 19:06:39 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "geomap" }}
|
|
|
|
{{ template "base" . }}
|
|
|
|
{{ end }}
|