Alex Dunmow efbfaea74c feat: convert to codeless .bnp — templates + manifest, Go/templ deleted (WO-WZ-021)
Convert the Editorial theme from a Go+templ wasm plugin to a fully codeless
.bnp: 7 blocks + 4 built-in overrides + email wrapper transcribed templ→pongo2
.ninjatpl (byte-faithful, parity-verified 55/55 identical), 4 page templates,
blocks/blocks.yaml (fully-qualified editorial:<key>), master_pages.json, and
manifest.yaml (system/page templates, template_overrides, email_wrapper, css
input_css_append). Schemas moved schemas/→blocks/. All Go, templ, go.mod/go.sum
deleted. plugin.mod bumped 0.1.2→0.2.0, [compatibility] dropped. Makefile
rewritten to codeless targets.

Gates: ninja plugin build → (codeless, no plugin.wasm); ninja plugin verify → OK;
check-safety → OK.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 15:27:31 +08:00

2 lines
842 B
Plaintext

{% if level|integer == 1 %}<div class="editorial-column">{% if kicker %}<span class="editorial-heading-kicker">{{ kicker }}</span>{% endif %}<h1 class="editorial-heading text-5xl md:text-7xl mt-2 {{ textClass }}">{{ text }}</h1></div>{% elif level|integer == 3 %}<h3 class="editorial-heading text-2xl md:text-3xl editorial-column {{ textClass }}">{{ text }}</h3>{% elif level|integer == 4 %}<h4 class="editorial-heading text-xl md:text-2xl editorial-column {{ textClass }}">{{ text }}</h4>{% elif level|integer == 5 %}<h5 class="editorial-heading text-lg editorial-column {{ textClass }}">{{ text }}</h5>{% elif level|integer == 6 %}<h6 class="editorial-heading text-base editorial-column {{ textClass }}">{{ text }}</h6>{% else %}<h2 class="editorial-heading text-3xl md:text-4xl editorial-column {{ textClass }}">{{ text }}</h2>{% endif %}