ensure title and heading contain something before rendering containers

This commit is contained in:
c0de 2023-12-29 17:25:41 -06:00
parent 31c761a991
commit 92a985b3e1

View File

@ -1,6 +1,6 @@
<div class="col">
<div class="card shadow-sm">
{% if this.title %}
{% if this.title and this.title|length >= 1 %}
<div class="card-header position-relative">
<span class="flex">{{ this.title }}</span>
<a
@ -23,7 +23,7 @@
{% if this.description and this.description|length >= 1 %}
<div class="card-body">
{% if this.headline %}
{% if this.headline and this.headline|length >= 1 %}
<h5 class="card-title">{{ this.headline }}</h5>
{% endif %}
<p class="card-text">{{ this.description }}</p>