themes-editorial/blocks/colophon.ninjatpl
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
850 B
Plaintext

<div class="editorial-wide editorial-colophon" data-block="editorial:colophon">{% if showSignup == true or showSignup == "true" %}<div class="mb-4"><div class="editorial-section-label mb-1">Subscribe</div><form class="flex gap-2 max-w-md"><input type="email" placeholder="you@example.com" class="flex-1 px-3 py-1 border editorial-hairline" aria-label="Email address"><button type="submit" class="editorial-button">Subscribe</button></form></div>{% endif %}{% if links %}<nav aria-label="Footer"><ul class="flex flex-wrap gap-x-4 gap-y-1">{% for link in links %}<li><a href="{{ link.url|default:"#" }}" class="editorial-button" style="border:0;padding:0;letter-spacing:0.05em;">{{ link.text }}</a></li>{% endfor %}</ul></nav>{% endif %}{% if issn %}<div class="mt-3"><span class="editorial-colophon-issn">ISSN {{ issn }}</span></div>{% endif %}</div>