diff --git a/templates/blog/card.html b/templates/blog/card.html index 50ae9a2bcdc0e3c81cb2ec024afedae0707bee18..d07f0b4d5a1d6c943f89a01c69bb7eb54bf72377 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>