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
This commit is contained in:
1 parent
fc66f541a3
commit
c5f883ace6
2 files changed
+3
-2
No files matched your search
+2
-1
@@ -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 = '<span id="states-and-provinces"></span>'
|
||||
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}</p>
|
||||
</div></header>
|
||||
<nav class="lists-row" aria-label="Jump to a part of the country"><ul>{"".join(jump)}</ul></nav></div></div>
|
||||
<span id="states-and-provinces"></span>
|
||||
<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,5 +1,5 @@
|
||||
{
|
||||
"/regions/": "aa351d1ce7ddcb555bcee2b2b795d87f2ed3b2a130c5b10c3873fcab4f1becf5",
|
||||
"/regions/": "7430cb0e32ffb89d0bc0bd89c476bccf9fc76e2d84175ebacd7370dc3bb20d1e",
|
||||
"/regions/atlantic-canada/": "5146b4b9d1940a268cfd2345f1eee2263fd6c7e2dfd28adfdffc3fff0e698c93",
|
||||
"/regions/ca-on/": "d4e543c6f163ba188a34444b42c494a3dbbd26c02f2b141339bbc230cd91f84e",
|
||||
"/regions/central-canada/": "d7478ad682d715705770d35cc902c80c40d27719e7f9f5a1d99ec702d3f7a43e",
|
||||
|
||||
Reference in new issue
Block a user