Compare commits

...
2 Commits
Author SHA1 Message Date
maik 76d68b013a fix(karte): Detail-Minikarte auf Strassenzoom (17) statt Deutschland-Locator
fitGermanyIfNeeded ueberschrieb bei klein den Zoom-17-Fit aus apply() auf
ganz Deutschland. Jetzt nur noch bei leerem Ergebnis (!records) ganz DE zeigen;
die Detailseiten-Minikarte bleibt auf Strasse/Haus des Schauplatzes.
2026-08-20 18:38:08 +02:00
maik dab258140f feat(nav): "Alle Schauplätze"/"All locations" als ersten Dropdown-Eintrag
Eindeutig, dass der Punkt zur Gesamtuebersicht /schauplaetze/ fuehrt – das
Top-Level "Schauplaetze" ist Link und Dropdown-Toggle zugleich. weight -1,
damit "Alle" vor den Kategorien steht (weight 0 sortiert Hugo ans Ende).
2026-08-19 16:57:06 +02:00
2 changed files with 14 additions and 1 deletions
+10
View File
@@ -51,6 +51,11 @@ removePathAccents = true # ä/ö/ü → a/o/u in URLs
name = "Schauplätze"
url = "/schauplaetze/"
weight = 20
[[languages.de.menus.main]]
name = "Alle Schauplätze"
parent = "Schauplätze"
url = "/schauplaetze/"
weight = -1
[[languages.de.menus.main]]
name = "Aufenthaltsorte"
parent = "Schauplätze"
@@ -117,6 +122,11 @@ removePathAccents = true # ä/ö/ü → a/o/u in URLs
name = "Locations"
url = "/schauplaetze/"
weight = 20
[[languages.en.menus.main]]
name = "All locations"
parent = "Locations"
url = "/schauplaetze/"
weight = -1
[[languages.en.menus.main]]
name = "Whereabouts"
parent = "Locations"
+4 -1
View File
@@ -71,7 +71,10 @@
}
function fitGermanyIfNeeded() {
if (klein || !records.length) {
// Nur bei leerem Ergebnis ganz Deutschland zeigen. Die Detail-Minikarte
// (klein) bleibt auf dem Strassenzoom aus apply() (maxZoom 17), damit man
// Strasse/Haus des Schauplatzes sieht.
if (!records.length) {
try { map.fitBounds(germanyBounds.pad(0.02)); } catch (e) {}
}
}