fix: hide jinja placeholder for title when no value set-hero

This commit is contained in:
Antoine Maas 2025-06-20 09:27:49 +00:00
parent ed14fafe32
commit a2bca73ac3

View file

@ -1,6 +1,8 @@
<div class="hero {{ 'align-center' if align == 'Center' else '' }}">
<div class="hero-content">
{%- if title -%}
<h1 class="hero-title">{{ _(title) }}</h1>
{%- endif -%}
{%- if subtitle -%}
<p class="hero-subtitle">
{{ _(subtitle) }}