themes-editorial/blocks/masthead.schema.json
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

35 lines
1.1 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Masthead",
"description": "Newspaper-style masthead with wordmark, optional kicker, hairline rule, and section navigation menu.",
"type": "object",
"properties": {
"title": {
"type": "string",
"title": "Wordmark",
"description": "The publication name. Rendered in Playfair Display 900 italic.",
"x-editor": "text"
},
"kicker": {
"type": "string",
"title": "Kicker",
"description": "Small mono caption above the wordmark (e.g. issue label or established date).",
"x-editor": "text"
},
"menuName": {
"type": "string",
"title": "Section Menu",
"description": "Menu providing the section navigation links rendered beneath the masthead.",
"x-editor": "menu-select"
},
"compact": {
"type": "string",
"title": "Compact Mode",
"description": "Use the compact masthead variant (single line) on article pages.",
"x-editor": "select",
"enum": ["false", "true"],
"default": "false"
}
}
}