mirror of https://github.com/jlelse/GoBlog
31 lines
884 B
Plaintext
31 lines
884 B
Plaintext
{{ define "title" }}
|
|
<title>{{ mdtitle .Blog.Title }}</title>
|
|
{{ if not .Data.nolocations }}
|
|
<link rel="stylesheet" href="/x/leaflet/leaflet.css"/>
|
|
<script src="/x/leaflet/leaflet.js"></script>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
<main>
|
|
{{ if .Data.nolocations }}
|
|
<p>{{ string .Blog.Lang "nolocations" }}</p>
|
|
{{ else }}
|
|
<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>
|
|
<script defer src="{{ asset "js/geomap.js" }}"></script>
|
|
{{ end }}
|
|
</main>
|
|
{{ if .CommentsEnabled }}
|
|
{{ include "interactions" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ define "geomap" }}
|
|
{{ template "base" . }}
|
|
{{ end }} |