From c5f883ace605e76d4e7c562d999b6a880f50f220 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Fri, 20 Nov 2026 14:21:57 -0700 Subject: [PATCH] Keep the jump row's first anchor outside the Places page's grid so the first group is not pushed right on a wide screen --- web/olt/regions.py | 3 ++- web/tests/golden/state-pages.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/olt/regions.py b/web/olt/regions.py index f164d8b..c88e91f 100644 --- a/web/olt/regions.py +++ b/web/olt/regions.py @@ -166,7 +166,7 @@ def regions_index_page(records, site, infos=()): a page (olt/places.py collect); each kind that has any gets a section of its own.""" by_slug, across = collect_regions(records) place_infos = list(infos.values()) if isinstance(infos, dict) else list(infos or ()) - blocks = '' + blocks = "" jump = [] kinds = [] for g, name, keys in facets.PLACE_GROUPS: @@ -226,6 +226,7 @@ def regions_index_page(records, site, infos=()): United States ({n_us}) and Canada ({n_ca}). A trail that crosses several states is on each one’s page.{lede_more}

+
{blocks}
{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.") diff --git a/web/tests/golden/state-pages.json b/web/tests/golden/state-pages.json index 732244e..7fa44c1 100644 --- a/web/tests/golden/state-pages.json +++ b/web/tests/golden/state-pages.json @@ -1,5 +1,5 @@ { - "/regions/": "aa351d1ce7ddcb555bcee2b2b795d87f2ed3b2a130c5b10c3873fcab4f1becf5", + "/regions/": "7430cb0e32ffb89d0bc0bd89c476bccf9fc76e2d84175ebacd7370dc3bb20d1e", "/regions/atlantic-canada/": "5146b4b9d1940a268cfd2345f1eee2263fd6c7e2dfd28adfdffc3fff0e698c93", "/regions/ca-on/": "d4e543c6f163ba188a34444b42c494a3dbbd26c02f2b141339bbc230cd91f84e", "/regions/central-canada/": "d7478ad682d715705770d35cc902c80c40d27719e7f9f5a1d99ec702d3f7a43e",