From 2a4f51679817b7a86b87f2624c868856300662f4 Mon Sep 17 00:00:00 2001 From: emi Date: Sun, 26 Jul 2026 18:49:42 +0000 Subject: [PATCH] frontend: load bookmarks-ui.js from the Go SSR home template too (#120) --- frontend/server/internal/render/templates/home.html.tmpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/server/internal/render/templates/home.html.tmpl b/frontend/server/internal/render/templates/home.html.tmpl index 2ce3918..7a03313 100644 --- a/frontend/server/internal/render/templates/home.html.tmpl +++ b/frontend/server/internal/render/templates/home.html.tmpl @@ -175,7 +175,10 @@

Browse all cities →

{{template "base_body_end" .}} - {{/* The records strip renders real temperatures server-side as .temp spans, so + {{/* Bookmarked locations: a star toggle in the results share row + a "Saved" + dropdown by the Find button. Loaded as its own module alongside app.js + (not merged into it) — see bookmarks-ui.js's header comment for why. */}} + {{/* The records strip renders real temperatures server-side as .temp spans, so it needs the same converter the SEO pages use or they'd stay in °F while the toggle says °C. Both import units.js, which the module loader dedupes. */}}