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 %}