From 0a9a0ad927c8ef6f39f2bf90fdc1f0358f31e9c6 Mon Sep 17 00:00:00 2001 From: Alex Dunmow Date: Fri, 20 Nov 2026 02:51:51 +0800 Subject: [PATCH] fix: render whole sections for factory-compiled sites (0.5.2) Co-Authored-By: Claude Opus 5.5 --- ...001-compiled-sites-render-whole-sections.md | 18 ++++++++++++++++++ plugin.mod | 2 +- .../overrides/earthen/rich-section.ninjatpl | 10 +++++----- 3 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 docs/adr/0001-compiled-sites-render-whole-sections.md diff --git a/docs/adr/0001-compiled-sites-render-whole-sections.md b/docs/adr/0001-compiled-sites-render-whole-sections.md new file mode 100644 index 0000000..8ce5993 --- /dev/null +++ b/docs/adr/0001-compiled-sites-render-whole-sections.md @@ -0,0 +1,18 @@ +# Compiled sites render whole sections on earthen + +Decided 2026-11-20 for earthen 0.5.2, from the website factory's visual review (orchestrator WO-094, ADR 0078). + +## 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 + +- rich-section renders one column with the text at a readable width when the section has no image. It used to keep a two-column grid with an empty media cell, so a compiled site whose about or contact section was waiting for a photo showed half the section blank. + +## Consequences + +- earthen 0.5.2 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: earthen, 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 b007906..9b307dc 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "earthen" display_name = "Earthen" scope = "@themes" -version = "0.5.1" +version = "0.5.2" description = "Botanical nonprofit theme in moss, clay, sage and cream — hand-illustrated motifs for cause-driven sites." kind = "theme" categories = ["templates"] diff --git a/templates/overrides/earthen/rich-section.ninjatpl b/templates/overrides/earthen/rich-section.ninjatpl index aaa33b4..c0bb708 100644 --- a/templates/overrides/earthen/rich-section.ninjatpl +++ b/templates/overrides/earthen/rich-section.ninjatpl @@ -1,14 +1,14 @@ {# rich-section override — earthen: paper ground, botanical eyebrow rule, Fraunces heading with crayon underline, organic media frame. Field reads, background/mediaPosition order control flow, body|safe and the {% img %} call preserved verbatim from the builtin; only classes/style/fonts reskinned. #}
-
-
+
+
{% if eyebrow %}

{{ eyebrow }}

{% endif %} {% if heading %}

{{ heading }}

{% endif %} {% if body %}
{{ body|safe }}
{% endif %} {% if ctaUrl and ctaLabel %}{{ ctaLabel }}{% endif %}
-
- {% if media %}
{% img media alt=mediaAlt class="w-full h-auto object-cover" %}
{% endif %} -
+ {% if media %}
+
{% img media alt=mediaAlt class="w-full h-auto object-cover" %}
+
{% endif %}