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