Say what each page is in the words people search with, and mark up the facts
A whole-site search audit found clean foundations and three gaps: titles without the words people search for, no structured data on trail pages, and trails that did not link to each other. - Trail titles carry the name hikers use, the abbreviation, the length and what the page offers; "GPX" only where the page has one. A new optional `common_name` field holds the name hikers use (13 records). - Descriptions are built from each record, at most 155 characters. - Place and list pages are titled for what they are; heading levels no longer jump. - Trail pages link to similar and related trails and to the lists they belong to. Every trail has at least three links from other trails. - JSON-LD on every page: a Place for each trail, breadcrumbs, item lists on list and place pages, WebSite and Organization on the home page, a fuller Dataset on the data page. - A social card per trail, a changelog feed, `lastmod` in the sitemap from record dates, `noindex` on the 404 and on raw per-trail files, a favicon and an `llms.txt` listing the data files and licences. - The "Considered and left out" page has its spacing fixed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
a46338afd5
commit
5b80fccd1e
245 files changed
+2534
-137
No files matched your search
@@ -18,7 +18,7 @@ URL_RE = re.compile(r"^https?://[^\s/]+\S*$")
|
||||
# Every field a record can have, as the dotted path docs/schema.md uses. A history entry
|
||||
# names these. A table name on its own ("source", "hike.source") names every field in it.
|
||||
_TABLES = {
|
||||
"": ("id", "name", "short_name", "short_name_url", "country", "regions", "length_km",
|
||||
"": ("id", "name", "common_name", "short_name", "short_name_url", "country", "regions", "length_km",
|
||||
"length_note", "kind", "tier", "designation", "wave", "wave_note", "inclusion"),
|
||||
"source": ("status", "publisher", "publisher_url", "url", "discovery", "format", "crs",
|
||||
"licence", "licence_text", "permission_quote", "permission_by",
|
||||
@@ -62,7 +62,7 @@ NOT_FACTS = (
|
||||
"wave", "wave_note", # the dataset's own bookkeeping
|
||||
)
|
||||
FACTS_TEXT = (
|
||||
"name, short_name, short_name_url, country, regions, length_km, length_note, kind, tier, designation, "
|
||||
"name, common_name, short_name, short_name_url, country, regions, length_km, length_note, kind, tier, designation, "
|
||||
"inclusion; source.* (status, publisher, publisher_url, url, licence, licence_text, "
|
||||
"permission_*, attribution, osm_only, line_source, line_file, line_absent_reason, "
|
||||
"decision, decision_text, redistributable); osm.relation; shield.* except note; "
|
||||
|
||||
Reference in new issue
Block a user