21 lines
1.4 KiB
Cheetah
21 lines
1.4 KiB
Cheetah
|
|
{{/* Ported from templates/glossary_term.html.j2. Extra data:
|
||
|
|
.Breadcrumb; .Term string; .Others []{Slug, Term string};
|
||
|
|
.JSONLDStr template.JS — the handler builds the WHOLE DefinedTerm object
|
||
|
|
(the Jinja original interpolated `term|tojson` / `page_description|tojson`
|
||
|
|
/ base_url inline; Go's JS-context escaping differs byte-wise from
|
||
|
|
markupsafe's tojson, so the handler reproduces Python htmlsafe-tojson —
|
||
|
|
ensure_ascii \uXXXX escapes plus <,>,&,' → <,>,&,' —
|
||
|
|
and template.JS passes it through untouched);
|
||
|
|
.Body template.HTML — glossary yaml `body` with {base} substituted. This
|
||
|
|
is the Jinja `| safe` site: the content is trusted, committed copy from
|
||
|
|
frontend/content/glossary.yaml, not user or API input. */}}{{template "base_head_start" .}}{{template "base_head_end" .}}<script type="application/ld+json">{{.JSONLDStr}}</script>{{template "base_body_start" .}}{{template "breadcrumb" .}}<article class="climate-page">
|
||
|
|
<h1>{{.Term}}</h1>
|
||
|
|
<p class="lede">{{.Body}}</p>
|
||
|
|
<p><a class="cta" href="{{.Base}}/">See it live: grade any location's weather →</a></p>
|
||
|
|
<div class="climate-foot">
|
||
|
|
<h2>More terms</h2>
|
||
|
|
<ul class="city-links">
|
||
|
|
{{range .Others}}<li><a href="{{$.Base}}/glossary/{{.Slug}}">{{.Term}}</a></li>{{end}} </ul>
|
||
|
|
</div>
|
||
|
|
</article>
|
||
|
|
{{template "base_body_end" .}}{{template "base_scripts_default" .}}{{template "base_tail" .}}
|