From c9d2b40f9d365d26c30c8731b6cb29d090867a2b Mon Sep 17 00:00:00 2001 From: Darius Auding <Darius.auding@gmx.de> Date: Sat, 23 Mar 2024 15:23:25 +0100 Subject: [PATCH] Fix image credit visibilty --- templates/shortcodes/gallery.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/shortcodes/gallery.html b/templates/shortcodes/gallery.html index 3a9476fc..529e7d79 100644 --- a/templates/shortcodes/gallery.html +++ b/templates/shortcodes/gallery.html @@ -6,8 +6,8 @@ <figure class="image is-4by3"> {% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ picture.image, width=800, height=600) -%} <img src="{{image.url}}" alt="{{picture.alt}}" /> - {% if picture.image.credits %} - <figcaption class="p-1 has-text-white has-background-black is-size-7 is-italic">{{ picture.image.credits }}</figcaption> + {% if picture.credits %} + <figcaption class="p-1 has-text-white has-background-black is-size-7 is-italic">{{ picture.credits }}</figcaption> {% endif %} </figure> </a> -- GitLab