frontend: load bookmarks-ui.js from the Go SSR home template too (#120)
All checks were successful
Build + push images (Forgejo registry) / build-push (backend) (push) Successful in 10s
Deploy / deploy (backend) (push) Successful in 11s
secrets-guard / encrypted (push) Successful in 9s
shell-lint / shellcheck (push) Successful in 16s
Build + push images (Forgejo registry) / build-push (frontend) (push) Successful in 49s
Deploy / deploy (frontend) (push) Successful in 58s

This commit is contained in:
emi 2026-07-26 18:49:42 +00:00
parent 1c6ecc2a6f
commit b57e280ad6

View file

@ -175,7 +175,10 @@
<p><a href="{{.Base}}/climate" data-event="home.nav_cities">Browse all cities →</a></p>
</section>
{{template "base_body_end" .}} <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script type="module" src="{{.AssetBase}}/app.js"></script>{{/* The records strip renders real temperatures server-side as .temp spans, so
<script type="module" src="{{.AssetBase}}/app.js"></script>{{/* 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. */}}
<script type="module" src="{{.AssetBase}}/bookmarks-ui.js"></script>{{/* 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. */}}
<script type="module" src="{{.AssetBase}}/climate.js"></script>