Convert the Art Deco theme from a wasm (Go+templ) plugin to a fully codeless
.bnp: pure declaration the host runs, no plugin.wasm, no block/core dependency.
- blocks/: blocks.yaml (7 fully-qualified art-deco:* keys) + per-block
.schema.json (moved from schemas/) + .ninjatpl transcribed byte-for-byte
(modulo whitespace) from the templ sources.
- templates/art-deco/{default,landing,article,full-width}.ninjatpl — page
layouts.
- templates/overrides/art-deco/{heading,text,button,image}.ninjatpl.
- templates/email/art-deco.ninjatpl.
- manifest.yaml (system/page templates, template_overrides, email_wrappers,
theme_presets, bundled_fonts, master_pages, css input_css_append) +
master_pages.json.
- plugin.mod bumped to 0.2.0; [compatibility] block_core dropped (codeless has
no core dependency).
- Deleted all Go/templ/*_templ.go, go.mod/go.sum; Makefile rewritten to the
codeless build/verify/publish targets.
Render parity verified against the prior templ output (static pongo2 harness,
whitespace-normalised): all 7 blocks, 4 overrides and the email wrapper match.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
17 lines
750 B
Plaintext
17 lines
750 B
Plaintext
<!doctype html>
|
|
<html lang="en" class="{% if theme_mode == "dark" %}dark{% endif %}">
|
|
{{ head_html|safe }}
|
|
<body class="bg-background text-foreground antialiased min-h-screen flex flex-col" style="font-family: var(--font-body, "Cormorant Garamond", "Cormorant", Georgia, serif);">
|
|
{{ admin_banner_html|safe }}
|
|
<section class="w-full">{{ slots.marquee|safe }}</section>
|
|
<main class="flex-grow">
|
|
{% if slots.main %}<div class="max-w-5xl mx-auto px-4 py-16 text-center">{{ slots.main|safe }}</div>{% endif %}
|
|
</main>
|
|
<section class="w-full">{{ slots.cta|safe }}</section>
|
|
<footer class="w-full mt-auto">
|
|
<div class="max-w-5xl mx-auto px-4">{{ slots.footer|safe }}</div>
|
|
</footer>
|
|
{{ body_end_html|safe }}
|
|
</body>
|
|
</html>
|