From 21d48fd1f4044c94e209a23550f35fec49e9d4be Mon Sep 17 00:00:00 2001 From: Alex Dunmow Date: Fri, 20 Nov 2026 03:18:22 +0800 Subject: [PATCH] fix: render whole sections for factory-compiled sites (0.4.3) Co-Authored-By: Claude Opus 5.5 --- ...002-compiled-sites-second-render-review.md | 19 +++++++++++++++++++ plugin.mod | 2 +- templates/kindergarten/article.ninjatpl | 2 +- templates/kindergarten/blog-index.ninjatpl | 2 +- templates/kindergarten/contact.ninjatpl | 2 +- templates/kindergarten/default.ninjatpl | 2 +- templates/kindergarten/full-width.ninjatpl | 2 +- templates/kindergarten/landing.ninjatpl | 2 +- .../overrides/kindergarten/hero.ninjatpl | 2 +- 9 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 docs/adr/0002-compiled-sites-second-render-review.md diff --git a/docs/adr/0002-compiled-sites-second-render-review.md b/docs/adr/0002-compiled-sites-second-render-review.md new file mode 100644 index 0000000..f087ff1 --- /dev/null +++ b/docs/adr/0002-compiled-sites-second-render-review.md @@ -0,0 +1,19 @@ +# Second render review of compiled sites on kindergarten + +Decided 2026-11-20 for kindergarten 0.4.3, from the website factory's visual review (orchestrator WO-094, ADR 0078), after ADR 0001 shipped. + +## Context + +The website factory compiles a customer's site onto this theme and renders every page at 1280 and 390 pixels wide. The review found template defects that show on a real site as an empty region, an unreadable hero or a page wider than a phone. + +## Decision + +- The page templates' sticky header is opaque and has no backdrop filter, which made it the containing block of the fixed mobile drawer and widened every page at phone width. +- The hero's scrim follows `overlayColor`: "light" draws the theme background at 75%, so the dark headline stays readable over a photo. The fixed dark scrim made it illegible. + +## Consequences + +- kindergarten 0.4.3 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it. +- No schema field changes. A site that sets the old values renders as before wherever it has an image. + +Keywords: kindergarten, rich-section, media, mediaPosition, empty column, hero, overlayColor, scrim, contrast, navbar, backdrop-blur, bn-navbar-drawer, team columns, WO-094, website factory, render review diff --git a/plugin.mod b/plugin.mod index 8350f4c..aa2fafe 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "kindergarten" display_name = "Kindergarten" scope = "@themes" -version = "0.4.2" +version = "0.4.3" description = "Primary-colored, hand-lettered theme for preschools and daycares — crayon borders, sticker badges, confetti, and a bouncing mascot showpiece." kind = "theme" categories = ["templates"] diff --git a/templates/kindergarten/article.ninjatpl b/templates/kindergarten/article.ninjatpl index 74bbd99..16c65f0 100644 --- a/templates/kindergarten/article.ninjatpl +++ b/templates/kindergarten/article.ninjatpl @@ -3,7 +3,7 @@ {{ head_html|safe }} {{ admin_banner_html|safe }} -
{{ slots.header|safe }}
+
{{ slots.header|safe }}
{{ slots.main|safe }}
{% if slots.aside %}{% endif %} diff --git a/templates/kindergarten/blog-index.ninjatpl b/templates/kindergarten/blog-index.ninjatpl index c31f398..823cd10 100644 --- a/templates/kindergarten/blog-index.ninjatpl +++ b/templates/kindergarten/blog-index.ninjatpl @@ -3,7 +3,7 @@ {{ head_html|safe }} {{ admin_banner_html|safe }} -
{{ slots.header|safe }}
+
{{ slots.header|safe }}
{% if slots.main %}{{ slots.main|safe }}{% else %}
No stories yet — check back soon.
{% endif %}
{{ slots.footer|safe }}
{{ body_end_html|safe }} diff --git a/templates/kindergarten/contact.ninjatpl b/templates/kindergarten/contact.ninjatpl index 3087ad7..e43f7e6 100644 --- a/templates/kindergarten/contact.ninjatpl +++ b/templates/kindergarten/contact.ninjatpl @@ -3,7 +3,7 @@ {{ head_html|safe }} {{ admin_banner_html|safe }} -
{{ slots.header|safe }}
+
{{ slots.header|safe }}
{% if slots.main %}{{ slots.main|safe }}{% else %}
Add a contact form to this page.
{% endif %}
{{ slots.footer|safe }}
{{ body_end_html|safe }} diff --git a/templates/kindergarten/default.ninjatpl b/templates/kindergarten/default.ninjatpl index f49caad..49cce51 100644 --- a/templates/kindergarten/default.ninjatpl +++ b/templates/kindergarten/default.ninjatpl @@ -3,7 +3,7 @@ {{ head_html|safe }} {{ admin_banner_html|safe }} -
{{ slots.header|safe }}
+
{{ slots.header|safe }}
{% if slots.main %}{{ slots.main|safe }}{% else %}
No content blocks assigned to this page yet.
{% endif %}
{{ slots.footer|safe }}
{{ body_end_html|safe }} diff --git a/templates/kindergarten/full-width.ninjatpl b/templates/kindergarten/full-width.ninjatpl index c97dde0..ca7ed71 100644 --- a/templates/kindergarten/full-width.ninjatpl +++ b/templates/kindergarten/full-width.ninjatpl @@ -3,7 +3,7 @@ {{ head_html|safe }} {{ admin_banner_html|safe }} -
{{ slots.header|safe }}
+
{{ slots.header|safe }}
{% if slots.main %}{{ slots.main|safe }}{% else %}
No content blocks assigned to this page yet.
{% endif %}
{{ slots.footer|safe }}
{{ body_end_html|safe }} diff --git a/templates/kindergarten/landing.ninjatpl b/templates/kindergarten/landing.ninjatpl index c97dde0..ca7ed71 100644 --- a/templates/kindergarten/landing.ninjatpl +++ b/templates/kindergarten/landing.ninjatpl @@ -3,7 +3,7 @@ {{ head_html|safe }} {{ admin_banner_html|safe }} -
{{ slots.header|safe }}
+
{{ slots.header|safe }}
{% if slots.main %}{{ slots.main|safe }}{% else %}
No content blocks assigned to this page yet.
{% endif %}
{{ slots.footer|safe }}
{{ body_end_html|safe }} diff --git a/templates/overrides/kindergarten/hero.ninjatpl b/templates/overrides/kindergarten/hero.ninjatpl index 86e81e2..21aeb36 100644 --- a/templates/overrides/kindergarten/hero.ninjatpl +++ b/templates/overrides/kindergarten/hero.ninjatpl @@ -13,7 +13,7 @@ {% set align = "center" %} {% if variant == "left-aligned" or variant == "split" %}{% set align = "left" %}{% endif %}
-{% if hasImage %}
{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}
{% endif %}
{% else %}{% endif %} +{% if hasImage %}
{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}
{% endif %}
{% else %}{% endif %}
{% if eyebrowText %}{{ eyebrowText }}{% endif %} {% if headlineText %}

{{ headlineText }}

{% endif %}