"Clear search and filters" left the longest-length list on a step: the
script rebuilds the length options and did not mark "Any" as the
default, which is what a form's reset returns to.
The same kind of fault elsewhere:
- A length in the address in the other unit (?max=200km for a reader
who uses miles) was dropped. It now takes the nearest step, and the
address is rewritten on load to say what the controls show.
- After Back or a reload a browser may put a form's old values back
after the script has run, or show an old copy of the page from its
cache. The theme and units switches, the filters, the sort and the
saved stars are set again when the page is shown.
- A theme or units change now reaches other open tabs.
- The popup on the home page's map follows the units and closes when
the filters leave its trail out.
- The Saved page drops ?t= from the address when the list in it is the
visitor's own.
The home page's headline no longer says "to compare and download", and
its subtitle no longer counts the GPX files.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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>
A trail's page lists its [[link]] entries under the main buttons, as
"More about this trail": the page's title, then who publishes it. The
official site stays the main button. A trail with no official site
gets its first link in that place, named by its publisher, and that
link is not repeated in the list.
The About page shows the README's new "Other lists of long trails"
section.
Tests updated for the new trail counts, and for there being no trail
left that spans a whole country.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Units. Miles and feet now come first everywhere unless the reader
chooses kilometres and metres: paired figures, the time estimate, the
elevation profile, page descriptions and the map scale. The length
filter and the length scale use round mile steps (round kilometre steps
for a reader who chose them). The lists defined by length are now
"Under 100 miles" and "The longest" at 1,000 miles or more; the old
/lists/under-100-km/ address redirects. The records stay metric.
Branding. The tab icon was a bare red blaze that read as a red block;
it is now a mountain with a trail up it, with PNG sizes for browsers
and phones that need them. The home page opens with the mark, the name
and what the site offers. Link previews get a real 1200x630 image:
the old one was an SVG, which Reddit, Slack and iMessage do not draw.
The decorative contour lines now stay inside the content column and
thin out to nothing on every side, where they used to run to the right
edge of a wide window and stop dead at the bottom of the band.
Tests updated for the new trail counts.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The site read like a database. It is now a place to find and read about
long trails, and everything on it is still derived from the records.
- One kind of thing: a trail. A route is a kind of trail, explained
where the word first appears. The navigation is Trails, Places, About.
- The home page is the catalogue, with filters for where, length, time,
season, terrain, kind, walking, shape and GPX. A filter is offered
only when at least a third of the trails have a value for it.
- Lists (for example National Scenic Trails and Routes) and a Places
page that groups states and provinces into regions.
- A trail page leads with what a hiker needs: summary, at a glance,
map, downloads, elevation profile and where to go next. The dataset's
own fields sit in a collapsed "About this data" section.
- The trail list is a compact card on phones and beside the filters,
and a column table where it has the full page width.
- web/serve.py takes --bind, for viewing from another device.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>