diff --git a/CHANGELOG.md b/CHANGELOG.md
index 70ce7b1..f3f1580 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 2026-11-20 - List titles in the words people search with
+
+- The longest list now opens with the answer: "Longest Hiking Trails in the US: 25 Trails of 1,000+ Miles", and its first line names the longest trail and its length (the Sea-to-Sea Route, 7,775 miles). The line is worked out from the trails, so it follows them.
+- The length bands: "Hiking Trails Under 100 Miles" is now "Short Thru-Hikes and Loops Under 100 Miles" and "Thru-Hikes Under 200 Miles" is now "Thru-Hikes and Loops Under 200 Miles", because 38 of the 102 trails under 100 miles are loops and are not thru-hikes. Their first lines say "short thru-hikes and loops".
+- The time bands: "Long Trails to Hike in a Week or Less" is now "Week-Long Backpacking Trips", "One to Two Weeks" is "One-to-Two-Week Backpacking Trips", "2 to 4 Weeks" is "Backpacking Trips of 2 to 4 Weeks", "a Month or More" is "Month-Long Backpacking Trips and Longer" and "in a Weekend" is "Weekend Backpacking Trips".
+- Loops: "Loop Hiking Trails" is now "Backpacking Loops", and "Cross-Country Hiking: 9 Long Trails and Routes" is now "Cross-Country Hiking: 9 Long Trails".
+- The same words carry into the pages of a state, park, range or wilderness area: "Backpacking Loops in Colorado", "Long Hikes Under 100 Miles in Jasper National Park", and a new kind, "Week-Long Backpacking Trips", which adds 3 state pages and 7 park, range and wilderness pages. No address changed.
+
## 2026-11-20 - Lists inside parks, mountain ranges and wilderness areas
- 131 new pages show one kind of trail in one park, mountain range or wilderness area: 39 for parks, 71 for ranges and 21 for wilderness areas. Examples: the trails under 100 miles in the Wind River Range, the loops in the Sangre de Cristo Mountains, the routes in Grand Canyon National Park. They answer searches such as "backpacking loops in the Adirondacks" or "short hikes in Yosemite", and each has the same filter bar, trail rows and map as the place's own page, with the count in its title.
diff --git a/web/olt/browse.py b/web/olt/browse.py
index 63bfa51..54481ae 100644
--- a/web/olt/browse.py
+++ b/web/olt/browse.py
@@ -55,6 +55,9 @@ class List:
# (list's trails, all trails) -> a plain sentence or two that says what the list covers
# where that is not every trail: how many have the fact the list is built on.
note: Optional[Callable] = None
+ # list's trails -> a first sentence for the list's page that answers the question the list is
+ # asked as (the longest trail and its length), put before the blurb.
+ lede: Optional[Callable] = None
# A larger least size than MIN_SIZE, where the list is thin by nature (a month's list).
min_size: int = 0
# False for a list that is one of a fixed set, so none may go missing: a month's list, however
@@ -69,6 +72,14 @@ def _km(mi):
return words.fmt_int(mi * words.KM_PER_MI)
+def longest_lede(recs):
+ """The longest hiking trail of the list, by name and length, in the words the question is asked in."""
+ top = max(recs, key=lambda r: (r["length_km"], r["id"]))
+ where = "in the US" if "US" in common.countries(top) else "here"
+ mi = words.fmt_int(top["derived"]["length_mi"])
+ return f"The longest hiking trail {where} is {common.plain_name(top)}, {mi} miles ({words.fmt_int(top['length_km'])} km)."
+
+
def _band(key):
return lambda r: facets.time_band(r) == key
@@ -181,10 +192,11 @@ LISTS = (
List("high-routes", "High routes",
"Routes whose own name says High Route: through high country, often off the trail.",
_high_route, page_title="High Routes: {n} Long Hiking Routes", group="walking"),
- List("longest", "The longest",
+ List("longest", "The longest hiking trails",
f"Trails of {LONG_MI:,} miles ({_km(LONG_MI)} km) or more.",
lambda r: r["length_km"] >= LONG_KM, sort="length-desc",
- page_title=f"Longest Hiking Trails: {{n}} Trails of {LONG_MI:,}+ Miles", group="length"),
+ page_title=f"Longest Hiking Trails in the US: {{n}} Trails of {LONG_MI:,}+ Miles", group="length",
+ lede=longest_lede),
List("500-to-1000-miles", f"{HALF_MI} to {LONG_MI:,} miles",
f"Trails of {HALF_MI} miles ({_km(HALF_MI)} km) or more and shorter than {LONG_MI:,} miles ({_km(LONG_MI)} km).",
_length_band(HALF_MI, LONG_MI), sort="length-desc",
@@ -204,43 +216,43 @@ LISTS = (
noun=f"Hiking Trails of {SHORT_MI} to {MID_MI} Miles",
short=f"{SHORT_MI} to {MID_MI} Mile Trails"),
List("under-100-miles", f"Under {SHORT_MI} miles",
- f"Trails shorter than {SHORT_MI} miles ({_km(SHORT_MI)} km).",
+ f"Short thru-hikes and loops: trails shorter than {SHORT_MI} miles ({_km(SHORT_MI)} km).",
lambda r: r["length_km"] < SHORT_KM, sort="length-asc",
- page_title=f"Hiking Trails Under {SHORT_MI} Miles: {{n}} Long Trails", group="length",
- noun=f"Hiking Trails Under {SHORT_MI} Miles",
+ page_title=f"Short Thru-Hikes and Loops Under {SHORT_MI} Miles: {{n}} Trails", group="length",
+ noun=f"Long Hikes Under {SHORT_MI} Miles",
short=f"Trails Under {SHORT_MI} Miles"),
List("under-200-miles", f"Under {MID_MI} miles",
- f"Trails shorter than {MID_MI} miles ({_km(MID_MI)} km): the two shortest bands together.",
+ f"Short thru-hikes and loops: trails shorter than {MID_MI} miles ({_km(MID_MI)} km), the two shortest bands together.",
lambda r: r["length_km"] < MID_KM, sort="length-asc",
- page_title=f"Thru-Hikes Under {MID_MI} Miles: {{n}} Long Trails", group="length"),
+ page_title=f"Thru-Hikes and Loops Under {MID_MI} Miles: {{n}} Trails", group="length"),
List("weekend", "A weekend or long weekend",
- f"Trails that take {WEEKEND_DAYS} days or fewer to walk whole.",
+ f"Backpacking trips of {WEEKEND_DAYS} days or fewer: trails that take that long to walk whole.",
lambda r: _mid_days(r) <= WEEKEND_DAYS, sort="time-asc",
- page_title="Long Trails to Hike in a Weekend: {n} Trails", group="time", note=time_note),
+ page_title="Weekend Backpacking Trips: {n} Long Trails", group="time", note=time_note),
List("a-week-or-less", "A week or less",
- "Trails most people walk in a week or less, as a source states it or as estimated from the length.",
- _band("week"), sort="time-asc", page_title="Long Trails to Hike in a Week or Less: {n} Trails",
- group="time", note=time_note),
+ "Week-long backpacking trips: trails most people walk in a week or less, as a source states it or as estimated from the length.",
+ _band("week"), sort="time-asc", page_title="Week-Long Backpacking Trips: {n} Long Trails",
+ group="time", note=time_note, noun="Week-Long Backpacking Trips", short="Week-Long Trips"),
List("one-to-two-weeks", "One to two weeks",
- "Trails that take one to two weeks, as a source states it or as estimated from the length.",
- _band("two-weeks"), sort="time-asc", page_title="Long Trails to Hike in One to Two Weeks: {n} Trails",
+ "Backpacking trips of one to two weeks, as a source states it or as estimated from the length.",
+ _band("two-weeks"), sort="time-asc", page_title="One-to-Two-Week Backpacking Trips: {n} Long Trails",
group="time", note=time_note),
List("two-to-four-weeks", "Two weeks to a month",
- "Trails that take two to four weeks to walk whole.",
- _band("month"), sort="time-asc", page_title="Long Trails to Hike in 2 to 4 Weeks: {n} Trails",
+ "Backpacking trips of two to four weeks: trails that take that long to walk whole.",
+ _band("month"), sort="time-asc", page_title="Backpacking Trips of 2 to 4 Weeks: {n} Long Trails",
group="time", note=time_note),
List("a-month-or-more", "A month or more",
- "Trails that take more than four weeks to walk whole.",
+ "Month-long backpacking trips and longer: trails that take more than four weeks to walk whole.",
lambda r: facets.time_band(r) in ("months", "long"), sort="time-asc",
- page_title="Long Trails That Take a Month or More: {n} Trails", group="time", note=time_note),
- List("loops", "Loops", "Trails that finish where they start.",
- lambda r: facets.shape(r) == "loop", page_title="Loop Hiking Trails: {n} Long Trail Loops",
- group="walking", noun="Loop Hiking Trails",
+ page_title="Month-Long Backpacking Trips and Longer: {n} Trails", group="time", note=time_note),
+ List("loops", "Loops", "Backpacking loops: trails that finish where they start.",
+ lambda r: facets.shape(r) == "loop", page_title="Backpacking Loops: {n} Long Trail Loops",
+ group="walking", noun="Backpacking Loops",
short="Loops"),
List("off-trail", "Cross-country",
"Trails with stretches of walking where there is no trail.",
lambda r: facets.walking(r) in facets.CROSS_COUNTRY,
- page_title="Cross-Country Hiking: {n} Long Trails and Routes", group="walking",
+ page_title="Cross-Country Hiking: {n} Long Trails", group="walking",
noun="Cross-Country Hiking",
short="Cross-Country Hikes"),
List("mostly-cross-country", "Mostly cross-country",
diff --git a/web/olt/regions.py b/web/olt/regions.py
index c88e91f..485c708 100644
--- a/web/olt/regions.py
+++ b/web/olt/regions.py
@@ -528,7 +528,7 @@ def list_page(lst, recs, total, site, *, records=None, before="", after="", lead
A list {esc(lst.blurb)} {_plural(len(recs))}, {n_gpx} with a GPX here. {esc(lst.lede(recs) + " " if lst.lede else "")}{esc(lst.blurb)} {_plural(len(recs))}, {n_gpx} with a GPX here.{esc(lst.title)}
-