Add 130 views of the same records, speed up map pages, and say who maintains the site
- New pages built from the records: lists by length, time to walk, month, kind of walking and holder; place-by-list pages; a Triple Crown table and key-figure tables for the National Scenic and Recreation Trails; highest points, most climbing and climb per mile; a page for every route author, with the authors of three or more routes leading the authors page; connected trails; recently added and changed; a glossary and a method page. Every place page opens with a summary. - Trail pages open with an "In brief" paragraph generated from the record and show when the record was last checked. The About page says who maintains the site and how to reach them. - The map starts when it is reached, not with the page. The site's own CSS, scripts and fonts are fingerprinted and cached for a year. Every image has its dimensions. - Titles are held to 60 characters and share previews get their own shorter description. - Social cards are redrawn so a long name can no longer push text into the footer, and the site-wide card takes its wording from the site settings instead of an old hand-made image. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
5b80fccd1e
commit
f2d3b71810
266 files changed
+4658
-252
No files matched your search
@@ -1,5 +1,41 @@
|
||||
# Changelog
|
||||
|
||||
## 2026-11-16 - New views of the same records: 130 new pages, a page for every route author, and a glossary
|
||||
|
||||
- 27 new lists. By length: 100 to 200 miles (161 to 322 km), 200 to 500 miles, 500 to 1,000 miles, and under 200 miles, which is the two shortest bands together. By time to walk: a weekend or long weekend (four days or fewer), two weeks to a month, and a month or more. By kind of walking: high routes (a route whose own name says High Route; "Highline" trails are not high routes), mostly cross-country, and trails not yet finished. By standing and holder: National Recreation Trails, and the trails whose designation names Parks Canada, the Forest Service, a state or provincial park, or a club, association or conservancy. By month: one list for each of the 12 months, from the trails whose season is on file. A time list says how many of its trails have a time a source states and how the rest were estimated. A month list says that only 77 of the 204 trails have a season on file, so it covers those 77. The lists are shown only with at least 5 trails (it was 4), and a month's list with at least 8.
|
||||
- 51 new pages for one kind of trail in one place, at `/regions/<place>/<list>/`, such as the loops, the routes or the desert trails in a state. A page exists where at least 5 of the place's trails are in the list, no more than 75% of the place's trails are (or it would repeat the place page), and its trails are not nearly the same set as another such page of the same place. Each place page links to its own, and each list page links to every place that has one.
|
||||
- A Triple Crown page (`/triple-crown/`) sets the Appalachian, Pacific Crest and Continental Divide trails side by side from their records: published length, states, usual time, high point, climb, season, publisher and year designated. It does not rank them. The set is named in a new data file, `collections.toml`, with the page that defines it. The National Scenic Trails and National Recreation Trails lists open with a table of the same figures for their trails.
|
||||
- Four pages by the numbers: `/numbers/` has the longest and shortest trails and a table of trails by state and province; `/numbers/highest-points/`, `/numbers/most-climbing/` and `/numbers/climb-per-mile/` rank the trails whose records have the figure, and say how many that is. A climb is ranked only where its track covers the whole trail, and each page repeats the caveat the elevation files carry. No page ranks the lowest points: most coastal trails are at sea level, so they tie.
|
||||
- Every route author has a page of their own at `/authors/<name>/`, however many routes they have: 45 pages, where there were two. A page has a table of the author's routes (length, where it runs, usual time where on file, where the author publishes or sells it, how the records credit them), the "In brief" paragraph of each route, a link to the author's own site where a guide or a page of their own words gives one, and a map. A route credited to several people together is on each person's page, which says who else is credited; `authors.toml` now names each person such a credit gives in full (Ryan Jordan, Alan Dixon, Don Wilson, Jake Blood, Jennifer Pharr Davis, Joe Mitchell, Mike Coronella, Ky Harkey, Anna Claire Eddington, Luc Mehl, Sarah Histand), Liz Thomas under her second credit, the Sea to Sea Trail Foundation as an organisation, and the people credited in one form only, so that their page can be marked up as a person. A credit with no entry (a nickname, a company, an association) stands alone and is not marked up as a person. The five-trail minimum is unchanged for every other kind of page.
|
||||
- `/authors/` opens with a section for every author with three or more routes, most routes first (today Brett Tucker with 6, Andrew Skurka with 5, Wilderness Mindset with 4 and Cam Honan with 3), each with their routes and lengths and a link to their page. Everyone else follows in an alphabetical list, with the route named. The threshold is `PROMINENT_MIN` in `web/olt/authors.py`, so an author who reaches it moves up with no other change. The route headings on `/routes/` and the author line on each route's page link to the authors' pages.
|
||||
- A page of recent additions and changes (`/recent/`), measured from the newest date in the records and not from the day the site is built. A page of linked trails (`/connected/`): each trail that three or more other trails' own descriptions name, with the trails that name it. It does not say that the trails meet.
|
||||
- A glossary (`/glossary/`) of 22 terms, from a new data file, `glossary.toml`: trail, route, high route, thru-hike, section hike, loop, end to end, network, cross-country, track, GPX, record only, National Scenic Trail, National Recreation Trail, Triple Crown, resupply, published length, typical time, season, climb, high point and unfinished trail. Each entry links to the lists where it applies, and those lists link back. A method page (`/method/`) is generated from `docs/schema.md` and the records: how published and measured lengths compare, how time is estimated, how climb is computed, and how many records carry each figure.
|
||||
- The Lists page is grouped under headings (standing, length, time, kind of walking, terrain, holder, month, country and GPX, tables, what is new, reference), each with a line on what it holds. Each list page links to the lists in its group and to the glossary terms it uses.
|
||||
- Every place page, list page and new page opens with a paragraph made from its trails: the longest and the shortest, the loops and routes, the quickest and slowest to walk, the terrain on file, the designations, and the highest point a record gives. A place with three trails or fewer also has a paragraph on each, and every place page says its share of the trails and which place in its part of the country has the most. No place page has fewer than 300 words.
|
||||
- The footer now links the route authors, the method page and the glossary. The authors page is with the trail views; the method page and the glossary are with the pages about the data.
|
||||
- All 130 are in the sitemap, with a date from the records, and each has at least 3 links to it from other pages. `tools/validate.py` checks the three new data files (`authors.toml`, `collections.toml` and `glossary.toml`), and `docs/schema.md` describes them.
|
||||
- No trail's facts changed.
|
||||
|
||||
## 2026-11-16 - An "In brief" paragraph and a last-checked date on every trail page, and who maintains the site
|
||||
|
||||
- Every trail page has an "In brief" paragraph under the introduction, written from the record's fields only and at most four sentences, in the order a searcher wants them: what it is and where (a route, with its author where a plain name is on file; a National Scenic Trail and the year the record gives; a loop or a network; the kinds of country; the states or provinces), where it starts and ends, how long it is in miles and kilometres and how long a source says it usually takes, the highest point and the total climb (with the caveat that they are computed from the track, and when the track covers only part of the published length or more than it), then the season and whether this site has a GPX or where the author publishes it. The season reads as a sentence that fits the field ("The usual season is May to July", or the record's own sentence, "Northbound hikes start late February to early April"), with no "Season:" label; a long note keeps only its first clause. A permit is said only where the record's text is one short sentence; otherwise it stays in "At a glance", as do the unfinished note and the walking line when there is no room. A clause whose field is missing is left out, so a sparse record gets two sentences.
|
||||
- Every trail page shows "Last checked" under the introduction, as a `<time datetime>` in the page's small print. It is the newest of the record's own check dates (its track verification, its hike facts and its source read), and the page's structured data gives the same date as `dateModified`. A history entry is a change or a request, not a check, so it does not move the date. The sitemap's `lastmod` still follows the newest date of any kind, history included.
|
||||
- The About page has a "Who maintains this" section: Stephen Waits, linked to his GitHub profile, and that the data is public domain, that every fact names the page it was read on, how to ask for a correction (open an issue on GitHub; the repository's issue chooser) and that the site has no ads, accounts, tracking or analytics. The name and profile address are two new settings in `web/site.toml` (`maintainer_name`, `maintainer_url`), and the section is built from them and from facts the repository holds. With neither set, the section and the markup below are left out. No email address is published anywhere.
|
||||
- The home page's `Organization` names the maintainer as its `founder`, a `Person` whose `sameAs` is the GitHub profile, and gives the issue chooser as its contact point. The `Dataset` on the data page has the same `Person` as its `creator` and `maintainer`, with the site as its publisher.
|
||||
- No trail's facts changed.
|
||||
|
||||
## 2026-11-16 - Faster pages, shorter titles, and redrawn social cards
|
||||
|
||||
- Pages with a map no longer load it with the page. MapLibre (200 KB of script, 65 KB of style), the contour add-on, the base-map style and the track data (`overview.geojson` on the home, place and list pages) load when a fifth of the map frame is on the screen, or the moment the frame is touched, clicked or focused. Until then the frame keeps its size and says "The map loads when you scroll to it." With JavaScript off, or where the tile server fails, a visitor sees what they saw before. Mobile Lighthouse performance on pages with a map went from 55 to 68 to 86 to 100 (medians of three runs).
|
||||
- Every `<img>` states its width and height. The nine SVG logos are now drawn to 256-pixel PNG thumbnails like the others (`web/tools/make_thumbs.py`; the Bartram Trail's logo was 345 KB and its thumbnail is 22 KB), and the full-size file stays one click away. The logos of the first four rows of a list are not lazy-loaded; the rest are.
|
||||
- The stylesheet, scripts, fonts and map libraries are named for a hash of their content (`/immutable/style.<hash>.css`, written by `web/olt/fingerprint.py`) and served with `Cache-Control: public, max-age=31536000, immutable`; HTML still revalidates. Files under `/assets/` that are not fingerprinted (icons, social card, base-map style) keep their address and revalidate.
|
||||
- The home page no longer moves as its fonts arrive (layout shift 0.1 to 0): the four fonts the pages draw their text with are preloaded. Opening a list or the home page no longer re-appends every row to put it in the order it is already in.
|
||||
- No title is over 60 characters, the length a search result shows, except two (below). The site name, " · Long Hikes", is added to the `<title>` only where the whole title is still 60 characters or fewer, because search engines now show the site's name on a line of its own above the title; the title shown when a page is shared never carries it. The home page's title, "Long-Distance Hiking Trails of the US and Canada", was 61 characters with it and is 48 without. Trail titles now fit 60 characters without the name and not 65 with it, so more of them keep their kilometres, a route's author and "map". Two trail titles are still over, because their own names are: the Sentier international des Appalaches and the Koroc River and Palmer River Loop. A name is never cut, and where only the name fits (the International Appalachian Trail in Newfoundland and Labrador) the title is the name. Every title is still different from every other.
|
||||
- A page shared on a social site shows about 125 characters of its description, so `og:description` and `twitter:description` are now cut from the page's description to at most 125, at the end of a sentence where one falls in the second half of that, else at the end of a word with an ellipsis, never after a comma or a joining word. The description search engines read (`<meta name="description">`, 155 characters) is unchanged.
|
||||
- The social cards are laid out by measurement. On the Uinta Highline Trail's card a three-line name pushed the places line down onto "longhikes.org". Each card's name, length and places are now one column between the header and the footer, and the name shrinks (never below 48 px) until the column fits; a long name with a parenthetical puts the parenthetical on its own lines, the one name that still did not fit (`sentier-international-appalaches`) gets a wider column and a narrower track box, and a list of places too long for two lines is cut to its first names and a count. All 204 cards and the site card were redrawn, and `web/tests/test_card_layout.py` fails if any two lines of text touch, any line leaves the safe area, or text meets the track.
|
||||
- The site-wide social card (`web/assets/og.png`, shown for the home page and any page without its own card) still carried the line "to compare and download", which the home page dropped because the site does no comparison and little downloading. It is now drawn by `web/tools/make_cards.py` from the site name and tagline in `web/site.toml`, in the style of the trail cards, and a test fails when it is out of date. The tagline is now the home page's headline, "Long-distance hiking trails of the United States and Canada", and the home page prints it from the setting.
|
||||
- No change to any trail's facts.
|
||||
|
||||
## 2026-11-16 - Search visibility: titles, descriptions, headings and links between trails
|
||||
|
||||
- Every trail page has a title in the words people search with: the name hikers use, the abbreviation, the length in miles and what the page offers, for example "Appalachian Trail (AT): 2,198 miles, map and GPX". "GPX" appears only on a page that has a GPX download, and "map" only on a page with a track. A route says it is a route. Pieces are dropped in a fixed order (the kilometres, a route's author, "map", the abbreviation, then "GPX") until the whole title fits in 65 characters. Five trails with very long names are over that, because the name alone is.
|
||||
|
||||
Reference in new issue
Block a user