Give every page of trails one layout, with the map beside the rows, and set no tables
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s

Every page that shows a set of trails (home, places, lists, Routes,
authors, Triple Crown, rankings, newest) has the same layout: the
trails as rows with their map beside them from 900 px wide up, and a
short map band above the rows when narrower. The home page gets its
headline back on the contour ground, with the ten lists as one line of
links. A trail page has its actions in its head and the map in a fixed
frame beside At a glance. No page sets a table: every set of trails is
the standard trail row, and other sets are rows in the same language.

Route authors' names link to their pages from route rows and trail
pages, the Routes page says how many routes by how many authors, and
the Lists index has a Route authors entry.

No trail's facts changed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-17 06:40:16 -07:00
1 parent 59f912c47c
commit 298f1b9fd9
28 files changed
+843 -541

No files matched your search

+15 -23
View File
@@ -8,7 +8,7 @@ Everything on this page comes from that file and from web/site.toml.
import os
import tomllib
from . import words
from . import pagekit, words
from .markup import Markup, esc
FILE_NAME = "left-out.toml"
@@ -104,38 +104,30 @@ def left_out_page(entries, site, repo_root):
if not listed:
continue
heading, meaning = REASONS[reason]
rows = ""
items = []
for e in listed:
mark = ""
if e.get("was_listed"):
mark = '<br><span class="tag">Once listed here</span>'
why = f"<p>{esc(e.get('note', ''))}</p>"
# In the language of a trail's row: the name as a row's name, "once listed here" as a tag
# where a route's tag is, where and how long as its line of facts, the deciding sentence
# as its text, the date and the source as small print.
tag = '<span class="tag">Once listed here</span>' if e.get("was_listed") else ""
text = [esc(e.get("note", ""))]
if e.get("waiting_for"):
why += (f"<p>It would be listed if this changes: "
f"{esc(e['waiting_for'])}</p>")
source = ""
text.append(f"It would be listed if this changes: {esc(e['waiting_for'])}")
small = [f'Decided <time datetime="{esc(e.get("decided", ""))}">{esc(e.get("decided", ""))}</time>']
if e.get("source_url"):
source = (f'<a href="{esc(e["source_url"])}">Source page</a>')
rows += (
f'<tr><td data-label="Trail">{esc(e.get("name", ""))}{mark}</td>'
f'<td data-label="Where">{esc(_where(e))}</td>'
f'<td data-label="Length">{_length(e)}</td>'
f'<td data-label="Why it is left out">{why}</td>'
f'<td data-label="Decided"><time datetime="{esc(e.get("decided", ""))}">'
f"{esc(e.get('decided', ''))}</time></td>"
f'<td data-label="Source">{source}</td></tr>')
groups += f"""<section aria-labelledby="left-out-{esc(reason)}">
small.append(f'<a href="{esc(e["source_url"])}">Source page</a>')
items.append(pagekit.plain_entry(esc(e.get("name", "")), tag=tag, text=text,
facts=[esc(_where(e)), _length(e)], small=small))
groups += f"""<section class="left-out__group" aria-labelledby="left-out-{esc(reason)}">
<div class="section-head"><h2 id="left-out-{esc(reason)}">{esc(heading)}</h2>
<p>{esc(meaning)}</p></div>
<div class="table-wrap"><table data-stack="rows">
<thead><tr><th scope="col">Trail</th><th scope="col">Where</th><th scope="col">Length</th><th scope="col">Why it is left out</th><th scope="col">Decided</th><th scope="col">Source</th></tr></thead>
<tbody>{rows}</tbody></table></div>
{pagekit.plain_list(items)}
</section>"""
body = f"""<div class="page-head"><div class="container">{bread}<li aria-current="page">Considered and left out</li></ol></nav><header class="titleblock">
<div class="titleblock__text"><h1>Considered and left out</h1>
<p class="page-head__lede">Trails and routes that were looked at for this dataset and left out, and why.</p>
</div></header></div></div>
<div class="container section section--finder place">
<div class="container section place left-out">
<p class="prose">{_opening(entries, site)}</p>
{groups}
</div>"""