thermograph/frontend/server/internal
Emi Griffith e377c4de03 content: write the entities literally in pages.yaml titles and descriptions
pages.yaml's title/description are interpolated as plain strings into <title>
and <meta name="description">, so html/template escapes them. Writing an HTML
entity in the YAML therefore escapes it a second time and the user sees the
source. Live on main right now:

  <meta name="description" content="... a &amp;plusmn;7-day seasonal window ...">
  <title>Weather &amp;amp; climate glossary: ...</title>

which renders as a literal "&plusmn;7-day" in the SERP snippet and "&amp;" in
the browser tab, on the about and glossary pages. The Python->Go rewrite did not
change this: the entities live in the shared data file and both engines
autoescape identically.

glossary.yaml is deliberately NOT touched. Its `body` is typed template.HTML and
rendered raw (glossary_term.html.tmpl), so the entities and <b> tags there are
correct and would break if "fixed".

The regression test runs against the real content dir, which the frontend
Dockerfile already copies into the builder stage, so it gates the image rather
than only local runs.
2026-07-25 01:35:59 -07:00
..
config web/worker: add a process-level liveness heartbeat (#80) 2026-07-25 04:13:47 +00:00
content web/worker: add a process-level liveness heartbeat (#80) 2026-07-25 04:13:47 +00:00
contentapi web/worker: add a process-level liveness heartbeat (#80) 2026-07-25 04:13:47 +00:00
contentdata content: write the entities literally in pages.yaml titles and descriptions 2026-07-25 01:35:59 -07:00
format web/worker: add a process-level liveness heartbeat (#80) 2026-07-25 04:13:47 +00:00
handlers web/worker: add a process-level liveness heartbeat (#80) 2026-07-25 04:13:47 +00:00
render web/worker: add a process-level liveness heartbeat (#80) 2026-07-25 04:13:47 +00:00