themes-y2k/templates/overrides/y2k/heading.ninjatpl
Alex Dunmow a86a54639a feat: convert to codeless .bnp — templates + manifest, Go/templ deleted (WO-WZ-021)
Convert the Y2K theme from a Go+templ wasm plugin to a fully codeless .bnp:
blocks/blocks.yaml + .ninjatpl, page/system templates, template overrides,
email wrapper, master pages and CSS declared in manifest.yaml. All *.go, *.templ,
*_templ.go, go.mod and go.sum deleted; schemas moved schemas/ -> blocks/.

Static parity proven 48/48 identical against the templ baseline (10 blocks x
full+empty+variant branches, 4 overrides incl. heading L1-6, email full+empty).

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

2 lines
744 B
Plaintext

{% if level|integer == 1 %}<h1 class="y2k-heading font-bold text-foreground text-5xl md:text-6xl {{ textClass }}">{{ text }}</h1>{% elif level|integer == 3 %}<h3 class="y2k-heading font-semibold text-foreground text-2xl {{ textClass }}">{{ text }}</h3>{% elif level|integer == 4 %}<h4 class="y2k-heading font-semibold text-foreground text-xl {{ textClass }}">{{ text }}</h4>{% elif level|integer == 5 %}<h5 class="y2k-heading font-semibold text-foreground text-lg {{ textClass }}">{{ text }}</h5>{% elif level|integer == 6 %}<h6 class="y2k-heading font-semibold text-foreground text-base {{ textClass }}">{{ text }}</h6>{% else %}<h2 class="y2k-heading font-bold text-foreground text-3xl md:text-4xl {{ textClass }}">{{ text }}</h2>{% endif %}