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
@@ -73,3 +73,14 @@ def stored_fingerprint(path):
|
||||
break
|
||||
pos += 12 + size
|
||||
return ""
|
||||
|
||||
|
||||
def site_lines(site):
|
||||
"""The two texts the site card shows: the site's name and its headline (the tagline, as
|
||||
the home page prints it, with a full stop)."""
|
||||
return site.name, site.tagline.rstrip(".") + "."
|
||||
|
||||
|
||||
def site_fingerprint(site):
|
||||
"""Like fingerprint(), for the site card assets/og.png."""
|
||||
return hashlib.sha1("\n".join(site_lines(site)).encode("utf-8")).hexdigest()[:12]
|
||||
Reference in new issue
Block a user