SEO: hand-curated notable weather event per city (falls back to blurb) (#100)
Auto-sourcing a notable weather event from Wikipedia search proved unreliable
(wrong matches, low coverage), so city_events.py is a small, fact-checked list of
one iconic event per city (Katrina/New Orleans, Harvey/Houston, the 1952 Great
Smog/London, the 2021 heat dome/Seattle, ...) — 31 cities, each with a Wikipedia
link. The city page shows a 'Notable weather in {city}' callout when one exists and
otherwise just the flavor blurb. Tests check the curated slugs are all valid and the
callout renders (and is absent for uncurated cities).
This commit is contained in:
parent
732657b25b
commit
05a7e3165e
1 changed files with 3 additions and 0 deletions
|
|
@ -1480,6 +1480,9 @@ table.normals-table tbody tr:hover { background: var(--surface-2); }
|
|||
.city-blurb { font-size: 15px; margin: 4px 0 14px; }
|
||||
.blurb-src { color: var(--muted); text-decoration: none; font-size: 13px; white-space: nowrap; }
|
||||
.blurb-src:hover { color: var(--accent); }
|
||||
.city-event { border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; padding: 12px 18px; margin: 22px 0; }
|
||||
.city-event h2 { margin: 2px 0 6px; font-size: 18px; }
|
||||
.city-event p { margin: 0; }
|
||||
.city-travel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 28px 0; }
|
||||
.city-travel h2 { margin-top: 4px; }
|
||||
.travel-note { font-size: 15px; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue