fix(noir): single-line hero comment (multi-line {# #} is a ninjatpl lexer error that 500s registration)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
c42354962c
commit
490e69716f
@ -9,9 +9,7 @@
|
|||||||
{% set sUrl = ctaSecondary.url %}
|
{% set sUrl = ctaSecondary.url %}
|
||||||
{% set variant = template|default:"centered" %}
|
{% set variant = template|default:"centered" %}
|
||||||
{% set hasImage = backgroundImage %}
|
{% set hasImage = backgroundImage %}
|
||||||
{# When there is a background image the content sits on a dark grayscale
|
{# With a background image the content sits on a dark grayscale photo + dark scrim in BOTH modes, so onImg switches text to light utility classes. #}
|
||||||
photo + dark scrim in BOTH modes, so text must be light regardless of mode.
|
|
||||||
onImg switches foreground/muted-foreground reads to light utility classes. #}
|
|
||||||
{% set showOverlay = hasImage %}
|
{% set showOverlay = hasImage %}
|
||||||
{% macro herocontent(align, onImg) %}
|
{% macro herocontent(align, onImg) %}
|
||||||
{% if eyebrowText %}<div class="mb-5 flex items-center gap-4 {% if align == "center" %}justify-center{% endif %}"><span class="noir-rule w-10"></span><span class="noir-label{% if onImg %} text-primary{% endif %}"{% if not onImg %} style="color:hsl(var(--primary));"{% endif %}>{{ eyebrowText }}</span><span class="noir-rule w-10"></span></div>{% endif %}
|
{% if eyebrowText %}<div class="mb-5 flex items-center gap-4 {% if align == "center" %}justify-center{% endif %}"><span class="noir-rule w-10"></span><span class="noir-label{% if onImg %} text-primary{% endif %}"{% if not onImg %} style="color:hsl(var(--primary));"{% endif %}>{{ eyebrowText }}</span><span class="noir-rule w-10"></span></div>{% endif %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user