Sync dev with main
All checks were successful
Website Dev / Entwicklungsumgebung (push) Successful in 12s
All checks were successful
Website Dev / Entwicklungsumgebung (push) Successful in 12s
This commit is contained in:
@ -57,7 +57,7 @@
|
||||
var marker = L.marker([51.473361, 11.965619]).addTo(map);
|
||||
|
||||
map.on('click', (e) => {
|
||||
marker.bindPopup('Georg-Cantor-Gymnasium<br>Torstraße 13<br>06110 Halle (Saale)<br><b><a href="https://www.qwant.com/maps/place/osm:way:54033279@Georg-Cantor-Gymnasium">Route</a>').openPopup();
|
||||
marker.bindPopup('Georg-Cantor-Gymnasium<br>Torstraße 13<br>06110 Halle (Saale)<br><b><a href="https://maps.app.goo.gl/T4ZroWsAdoXM3xdn7">Route</a>').openPopup();
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
@ -27,7 +27,7 @@
|
||||
<div class="card d-flex flex-row flex-wrap-reverse">
|
||||
<div class="flex-grow card-body min-w-0">
|
||||
<a href="{{ .Permalink }}"><h3 class="card-title">{{ .Title }}</h3></a>
|
||||
{{ range (resources.Get "data/abiturdurchschnitte.json" | transform.Unmarshal).abiturdurchschnitte }}
|
||||
{{ range (resources.Get "charts/abiturdurchschnitte.json" | transform.Unmarshal).abiturdurchschnitte }}
|
||||
{{ if eq (string .jahr) $.Title }}<a href="/chronikseiten/abiturdurchschnitte" class="h4 card-text">Abiturdurchschnitt: {{ .schnitt }}</a>{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
14
layouts/shortcodes/chart.html
Normal file
14
layouts/shortcodes/chart.html
Normal file
@ -0,0 +1,14 @@
|
||||
{{ with .Get "id" }}
|
||||
{{ $chartId := . }}
|
||||
<script src="https://assets.cantorgymnasium.de/echarts/v5/echarts.min.js"></script>
|
||||
|
||||
{{ with resources.Get "js/echarts-locale.js" | resources.Minify }}
|
||||
<script src="{{ .Permalink }}"></script>
|
||||
{{ end }}
|
||||
|
||||
<div id="chart-container"></div>
|
||||
|
||||
{{ with resources.Get (print "charts/" $chartId ".js") | js.Build | resources.Minify }}
|
||||
<script src="{{ .Permalink }}"></script>
|
||||
{{ end }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user