Link the place pages from the hub, the states and the trails, and search by place
This commit is contained in:
1 parent
16c5275c94
commit
00c60a4c2c
10 files changed
+387
-35
No files matched your search
@@ -16,12 +16,7 @@ Built = namedtuple("Built", ("path", "title", "description", "body", "needs_map"
|
||||
|
||||
|
||||
def _in_name(info):
|
||||
"""The name as it reads after "in": a range or a wilderness area takes "the"
|
||||
("in the Wind River Range"), a park does not ("in Yosemite National Park")."""
|
||||
name = info["name"]
|
||||
if info["kind"] in ("range", "wilderness") and not name.lower().startswith("the "):
|
||||
return f"the {name}"
|
||||
return name
|
||||
return places.in_name(info)
|
||||
|
||||
|
||||
def _title_place(info):
|
||||
|
||||
Reference in new issue
Block a user