Say who each route author is, with a biography from the database
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s

authors.toml gains a summary, a biography, the author's own site and
the pages each was read on, for people only. An author's page now
opens with the name and the summary, shows a joint credit only on the
route it applies to, and carries an About section after the routes.
People with three or more routes lead the authors page. Organisations
get no biography.

35 people have a summary and a biography and 4 a summary only, each
statement checked against the page it cites. Wilderness Mindset is
recorded as two people. The Sawtooth Wilderness High Route is credited
to Eric Poulin, who names himself as the author of Seeking Lost.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-17 12:09:34 -07:00
1 parent d7fb6483a2
commit f467fcb560
15 files changed
+1136 -123

No files matched your search

+4 -3
View File
@@ -56,8 +56,9 @@ def holder_counts(recs, records):
return out
def facts(recs, records):
"""The summary of a set of trails: one short paragraph (Markup). Empty for no trails."""
def facts(recs, records, by_authors=True):
"""The summary of a set of trails: one short paragraph (Markup). Empty for no trails. With
by_authors False (an author's own page) the routes-and-authors clause is left out."""
if not recs:
return Markup("")
by_length = sorted(recs, key=lambda r: (r["length_km"], r["id"]))
@@ -73,7 +74,7 @@ def facts(recs, records):
parts = []
if loops:
parts.append(f"{loops} {'is a loop' if loops == 1 else 'are loops'}")
if routes:
if routes and by_authors:
authors = {facets.author(r) for r in routes if facets.author(r)}
n = len(routes)
parts.append(f"{n} {'is a route' if n == 1 else 'are routes'}"