From 539b4a5302508514510a16d338a2f22784830776 Mon Sep 17 00:00:00 2001 From: Alex Dunmow Date: Mon, 6 Jul 2026 19:39:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(gotham):=20hero=20text=20forced=20light=20o?= =?UTF-8?q?ver=20image=20scrims=20=E2=80=94=20light-mode=20hero=20was=20da?= =?UTF-8?q?rk-on-dark?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- templates/overrides/gotham/hero.ninjatpl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/templates/overrides/gotham/hero.ninjatpl b/templates/overrides/gotham/hero.ninjatpl index 6212d1b..9c79743 100644 --- a/templates/overrides/gotham/hero.ninjatpl +++ b/templates/overrides/gotham/hero.ninjatpl @@ -9,12 +9,13 @@ {% set sUrl = ctaSecondary|get:"url" %} {% set variant = template|default:"centered" %} {% set hasImage = backgroundImage %} +{% set heroOnImage = "" %}{% if hasImage and overlayColor != "light" %}{% set heroOnImage = "on" %}{% endif %} {% set showOverlay = hasImage and overlayColor != "none" and overlayColor != "" %} -{% macro herocontent(align) %} +{% macro herocontent(align, onImage) %} {% if eyebrowText %}
{{ eyebrowText }}
{% endif %} -{% if headlineText %}

{{ headlineText }}

{% endif %} -{% if subText %}

{{ subText }}

{% endif %} -{% if descText %}

{{ descText }}

{% endif %} +{% if headlineText %}

{{ headlineText }}

{% endif %} +{% if subText %}

{{ subText }}

{% endif %} +{% if descText %}

{{ descText }}

{% endif %} {% if pText or sText %}
{% if pText and pUrl %}{{ pText }}{% endif %} {% if sText and sUrl %}{{ sText }}{% endif %} @@ -27,7 +28,7 @@ {% if variant == "split" %}
{% if hasImage %}{% img backgroundImage alt=headlineText class="absolute inset-0 h-full w-full object-cover" layout="hero" %}{% endif %}
-
{{ herocontent("left") }}
+
{{ herocontent("left", "") }}
{% else %} {% set align = "center" %} @@ -37,6 +38,6 @@ -
{{ herocontent(align) }}
+
{{ herocontent(align, heroOnImage) }}
{% endif %}