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
@@ -266,8 +266,8 @@ class ListTest(unittest.TestCase):
|
||||
self.assertFalse(browse.is_shown(76, 100))
|
||||
|
||||
def test_thin_list_is_not_shown(self):
|
||||
# three loops among twenty trails: below MIN_SIZE, so no link and no page
|
||||
recs = [fake(i, hike={"shape": "loop"} if i < 3 else {"shape": "point-to-point"}) for i in range(20)]
|
||||
# four loops among twenty trails: below MIN_SIZE, so no link and no page
|
||||
recs = [fake(i, hike={"shape": "loop"} if i < 4 else {"shape": "point-to-point"}) for i in range(20)]
|
||||
for i in range(5):
|
||||
recs[i]["tier"] = "national"
|
||||
keys = [lst.key for lst, _ in browse.shown(recs)]
|
||||
@@ -277,7 +277,7 @@ class ListTest(unittest.TestCase):
|
||||
body = home.render(recs, GH)
|
||||
self.assertNotIn('href="/lists/loops/"', body)
|
||||
self.assertIn('href="/lists/national-scenic-trails/"', body)
|
||||
recs[3]["hike"] = {"shape": "loop"}
|
||||
recs[4]["hike"] = {"shape": "loop"}
|
||||
self.assertIn("loops", [lst.key for lst, _ in browse.shown(recs)])
|
||||
|
||||
def test_rules_name_no_trail(self):
|
||||
|
||||
Reference in new issue
Block a user