Say who each route author is, with a biography from the database
authors.toml gains a summary, a biography, the author's own site and the pages each was read on, for people only. An author's page now opens with the name and the summary, shows a joint credit only on the route it applies to, and carries an About section after the routes. People with three or more routes lead the authors page. Organisations get no biography. 35 people have a summary and a biography and 4 a summary only, each statement checked against the page it cites. Wilderness Mindset is recorded as two people. The Sawtooth Wilderness High Route is credited to Eric Poulin, who names himself as the author of Seeking Lost. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
d7fb6483a2
commit
f467fcb560
15 files changed
+1136
-123
No files matched your search
+6
-3
@@ -5,15 +5,18 @@ from . import words
|
||||
from .markup import Markup, esc
|
||||
|
||||
|
||||
def head(h1, lede_html, crumbs, *, kicker=""):
|
||||
"""The page-head block. crumbs: [(text, href)] leading to this page; lede_html is HTML."""
|
||||
def head(h1, lede_html, crumbs, *, kicker="", facts=()):
|
||||
"""The page-head block. crumbs: [(text, href)] leading to this page; lede_html is HTML.
|
||||
facts: short facts (HTML) set as one quiet line under the lede."""
|
||||
items = "".join(f'<li><a href="{esc(h)}">{esc(t)}</a></li>' for t, h in crumbs)
|
||||
kick = f'<p class="kicker">{esc(kicker)}</p>' if kicker else ""
|
||||
line = "".join(f"<span>{f}</span>" for f in facts if str(f).strip())
|
||||
line = f'\n <p class="page-head__facts">{line}</p>' if line else ""
|
||||
return f"""<div class="page-head"><div class="container">
|
||||
<nav class="breadcrumb" aria-label="Breadcrumb"><ol>{items}<li aria-current="page">{esc(h1)}</li></ol></nav>
|
||||
<header class="titleblock"><div class="titleblock__text">
|
||||
{kick}<h1>{esc(h1)}</h1>
|
||||
<p class="page-head__lede">{lede_html}</p>
|
||||
<p class="page-head__lede">{lede_html}</p>{line}
|
||||
</div></header>
|
||||
</div></div>"""
|
||||
|
||||
|
||||
Reference in new issue
Block a user