Make four list titles say what their lists hold: the longest list names the US and Canada, the week list says a week or less, the weekend list says a long weekend because every trail in it takes 3 or 4 days, and the cross-country list says its trails have cross-country stretches, since 38 of its 54 are not mostly cross-country
This commit is contained in:
1 parent
e3cb071968
commit
6ce23ff2bb
3 files changed
+13
-15
No files matched your search
@@ -95,13 +95,9 @@ def key_of(p):
|
||||
return p["slug"] if p["kind"] == "state" else (p["kind"], p["slug"])
|
||||
|
||||
|
||||
# The short noun a place page's title and heading use for each list, the same whatever the place's name:
|
||||
# the list's own short noun, but for these.
|
||||
PLACE_NOUN = {"a-week-or-less": "Trips of a Week or Less"}
|
||||
|
||||
|
||||
def place_noun(lst):
|
||||
return PLACE_NOUN.get(lst.key) or lst.short or lst.noun
|
||||
"""The short noun a place page's title and heading use for the list, the same whatever the name."""
|
||||
return lst.short or lst.noun
|
||||
|
||||
|
||||
def label(lst):
|
||||
|
||||
Reference in new issue
Block a user