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:
Alex Dunmow 2026-07-06 19:56:43 +08:00
parent c42354962c
commit 490e69716f

View File

@ -9,9 +9,7 @@
{% set sUrl = ctaSecondary.url %}
{% set variant = template|default:"centered" %}
{% set hasImage = backgroundImage %}
{# When there is a background image the content sits on a dark grayscale
photo + dark scrim in BOTH modes, so text must be light regardless of mode.
onImg switches foreground/muted-foreground reads to light utility classes. #}
{# 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. #}
{% set showOverlay = hasImage %}
{% 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 %}