diff --git a/web/assets/style.css b/web/assets/style.css index c4222d2..de55663 100644 --- a/web/assets/style.css +++ b/web/assets/style.css @@ -2298,6 +2298,12 @@ td .linklist a { font-weight: 400; } .lists-row li { flex: none; } .lists-row a { min-block-size: 2.75rem; } } +/* The Places hub's jump row: one compact line at the very top, States and provinces and each kind of + place with its number of pages; it wraps on a phone rather than scrolling. */ +.places-jump { margin-block-end: var(--space-1); } +.places-jump ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); padding: 0; list-style: none; font: 600 0.85rem/1.3 var(--font-sans); } +.places-jump a { display: inline-flex; align-items: center; min-block-size: 2.25rem; color: var(--link); } +.places-jump__n { margin-inline-start: 0.35em; color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; } .section--finder { padding-block-start: var(--space-4); } .pills { display: flex; flex-wrap: wrap; gap: var(--space-2); } .pills .check { grid-template-columns: auto auto; padding: 0.15rem var(--space-2); border: 1px solid var(--rule-strong); border-radius: 999px; } diff --git a/web/olt/regions.py b/web/olt/regions.py index 48bd3c5..f164d8b 100644 --- a/web/olt/regions.py +++ b/web/olt/regions.py @@ -166,8 +166,9 @@ 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: infos = sorted((by_slug[k.lower()] for k in keys if k.lower() in by_slug), key=lambda i: i["name"]) if not infos: @@ -200,7 +201,7 @@ def regions_index_page(records, site, infos=()): f'
Places with no listed trail: {links}.
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’s page.{lede_more}