Redraw the two social cards whose states changed, and leave the plain Places page's shortcut label as it was

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Sonnet 5.5 committed 2026-11-20 12:52:49 -07:00
1 parent 86de4495b0
commit d4d980ff97
4 files changed
+2 -1

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 20 KiB

+1 -1
View File
@@ -219,7 +219,7 @@ def regions_index_page(records, site, infos=()):
<p class="page-head__lede">The {len(records)} trails by state and province, grouped into parts of the
United States ({n_us}) and Canada ({n_ca}). A trail that crosses several states is on each one&rsquo;s page.{lede_more}</p>
</div></header>
<nav class="lists-row" aria-label="Jump to a part of the country or a kind of place"><ul>{"".join(jump)}</ul></nav></div></div>
<nav class="lists-row" aria-label="Jump to a part of the country{" or a kind of place" if place_infos else ""}"><ul>{"".join(jump)}</ul></nav></div></div>
<div class="container section places">{blocks}</div>{foot}"""
description = (f"Where the {len(records)} long trails and routes are: {n_us} in the United States and {n_ca} in Canada, "
f"by state and province, with the number in each.")
+1
View File
@@ -66,6 +66,7 @@ class HubTest(unittest.TestCase):
_, _, with_places = regions.regions_index_page(self.records, S, infos=self.infos)
stripped = re.sub(r'<section class="places__group" aria-labelledby="(?:parks|ranges|wilderness)">.*?</section>',
"", str(with_places), flags=re.S)
stripped = stripped.replace(" or a kind of place", "")
stripped = re.sub(r'<li><a href="#(?:parks|ranges|wilderness)">.*?</li>', "", stripped)
stripped = stripped.replace(
" Parks, mountain ranges and wilderness areas with three or more trails have pages too.", "")