frontend: load bookmarks-ui.js from the Go SSR home template too (#120)
This commit is contained in:
parent
4f21e47750
commit
2a4f516798
1 changed files with 4 additions and 1 deletions
|
|
@ -175,7 +175,10 @@
|
||||||
<p><a href="{{.Base}}/climate" data-event="home.nav_cities">Browse all cities →</a></p>
|
<p><a href="{{.Base}}/climate" data-event="home.nav_cities">Browse all cities →</a></p>
|
||||||
</section>
|
</section>
|
||||||
{{template "base_body_end" .}} <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
{{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
|
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. */}}
|
the toggle says °C. Both import units.js, which the module loader dedupes. */}}
|
||||||
<script type="module" src="{{.AssetBase}}/climate.js"></script>
|
<script type="module" src="{{.AssetBase}}/climate.js"></script>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue