Omphaloskepsis-2/layouts/locations/list.html

54 lines
1.4 KiB
HTML
Raw Normal View History

2024-04-02 20:36:21 +01:00
{{ define "title" }}
2025-02-20 01:23:36 +01:00
Locations |
{{ .Site.Title }}
2024-04-02 20:36:21 +01:00
{{ end }}
{{ define "main-class" }}--section location-map{{ end }}
{{ define "header-scripts" }}
2025-02-20 01:23:36 +01:00
<!-- Leaflet -->
<link
rel="stylesheet"
href="/css/leaflet/leaflet.css"
/>
<link
rel="stylesheet"
href="/js/leaflet-fullscreen/leaflet.fullscreen.css"
/>
2024-04-02 20:36:21 +01:00
{{ end }}
{{ define "footer-scripts" }}
2025-02-20 01:23:36 +01:00
<!-- Leaflet -->
<script src="/js/leaflet/leaflet.js"></script>
2024-07-23 10:08:36 +02:00
2025-02-20 01:23:36 +01:00
<!-- Leaflet Heat -->
<script src="/js/leaflet-heat/leaflet-heat.js"></script>
2024-07-23 10:08:36 +02:00
2025-02-20 01:23:36 +01:00
<!-- Leaflet Fullscreen -->
<script src="/js/leaflet-fullscreen/leaflet.fullscreen.min.js"></script>
2024-07-23 10:08:36 +02:00
2025-02-20 01:23:36 +01:00
{{- partial "cv/locations/heatmap.js" ( dict "all_pages" $.Site.AllPages "locations" $.Site.Data.locations ) -}}
2024-04-02 20:36:21 +01:00
{{ end }}
{{ define "main-header" }}
2025-02-20 01:23:36 +01:00
<header class="site-content__header">
<h1 class="page-title">{{ .Title | safeHTML }}.</h1>
{{ .Content }}
</header>
2024-04-02 20:36:21 +01:00
{{ end }}
{{ define "main-body" }}
2025-02-20 01:23:36 +01:00
<article class="site-content__body site-content__body--chart">
<div
id="map"
style="width: 100%; height: 500px; margin: 0; display: block;"
></div>
2024-04-02 20:36:21 +01:00
2025-01-05 17:28:25 +01:00
{{- with ( partial "util/render_recursive_list.html" ( dict "sc" $ "pc" . "items" $.Site.Data.locations "schemaType" "Place" ) ) -}}
2025-02-20 01:23:36 +01:00
<section style="grid-area: section-content">
2025-01-05 17:28:25 +01:00
{{- . -}}
2025-02-20 01:23:36 +01:00
</section>
2025-01-05 17:28:25 +01:00
{{- end -}}
2025-02-20 01:23:36 +01:00
</article>
2024-04-02 20:36:21 +01:00
{{ end }}