Compare commits

..

2 Commits

Author SHA1 Message Date
40911124fd Add a headline 2023-12-29 17:25:50 -06:00
92a985b3e1 ensure title and heading contain something before rendering containers 2023-12-29 17:25:41 -06:00
2 changed files with 3 additions and 2 deletions

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>

View File

@ -76,6 +76,7 @@ template_vars = {
"gallery_items": [
{
"src": "https://files.c0defox.es/Pictures/arctic-fox.jpg",
"headline": "Alopex-Vulpes",
"description": "An arctic fox :3",
"title": "fox",
"reactions": {