From 23bf5fda66bc72a4fe7a0e956b8a22f81abf1a70 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Tue, 12 Mar 2024 23:52:33 +0100 Subject: [PATCH] Make blog depiction credits optional --- templates/blog/card.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/blog/card.html b/templates/blog/card.html index 50ae9a2b..d07f0b4d 100644 --- a/templates/blog/card.html +++ b/templates/blog/card.html @@ -3,7 +3,9 @@ <a href="{{ post.permalink }}"> <figure class="image is-4by3"> <img src="{{ get_url(path="@/" ~ post.relative_path, trailing_slash=true) }}{{ post.extra.depiction.image | safe }}" alt="{{ post.extra.depiction.alt }}" /> - <figcaption>{{ post.extra.depiction.credits }}</figcaption> + {% if post.extra.depiction.credits %} + <figcaption>{{ post.extra.depiction.credits }}</figcaption> + {% endif %} </figure> </a> </div> -- GitLab