From 94e51683e243348b28aa5d44689d54c6e56e9724 Mon Sep 17 00:00:00 2001 From: c0de Date: Fri, 29 Dec 2023 16:12:43 -0600 Subject: [PATCH] make description and title optional; can't react to no-title pictures --- templates/card.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/card.html b/templates/card.html index c69e2bc..372e5a5 100644 --- a/templates/card.html +++ b/templates/card.html @@ -1,5 +1,6 @@
+ {% if this.title %}
{{ this.title }}
+ {% endif %} {{ this.alt_text if this.alt_text else this.title }} + {% if this.description and this.description|length >= 1 %}
-

{{ this.description | default('') }}

+

{{ this.description }}

+ {% endif %} {% if this.reactions and gallery.max_reactions_per_card|int >= 1 %}