Add saved trails, and move the units and theme switches to the header
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s

A visitor can save trails with a star on every list row and a Save
button on each trail page. The list is kept in localStorage (lh-saved)
and shown at /saved/, with a map of only those trails and a link that
carries the list in its address (/saved/?t=id,id) so it can be
bookmarked or sent to another device or person. A list opened from a
link never overwrites the visitor's own; "Save these" adds to it. The
page is noindex and left out of the sitemap.

The miles/km switch and the auto/light/dark choice move from the footer
to the header on every page, beside a Saved link that shows the count.
They are hidden without JavaScript.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-15 16:01:29 -07:00
1 parent ad2223f427
commit 46dc81523c
14 files changed
+1122 -59

No files matched your search

+1 -1
View File
@@ -186,7 +186,7 @@ class ExtraPagesTest(unittest.TestCase):
self.assertNotIn(f'name="{name}"', form, name)
# the map is in the tool, beside the list it filters
main = doc[doc.index('<div class="finder__main">'):]
self.assertLess(main.index('data-map="overview"'), main.index('<ol class="entries" id="entries">'))
self.assertLess(main.index('data-map="overview"'), main.index('<ol class="entries" id="entries"'))
longest_km = max(r["length_km"] for r in self.records)
maxsel = form[form.index('id="max"'):form.index("</select>", form.index('id="max"'))]
minsel = form[form.index('id="min"'):form.index("</select>", form.index('id="min"'))]