From 9068ae39488421381a6b87b78d0c0875d0224b42 Mon Sep 17 00:00:00 2001
From: magicfelix <felix@felix-zauberer.de>
Date: Tue, 1 Oct 2024 22:41:23 +0200
Subject: [PATCH] Fix credits attribute in further shortcode

---
 templates/shortcodes/further.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/shortcodes/further.html b/templates/shortcodes/further.html
index 205c134c..b823e51c 100644
--- a/templates/shortcodes/further.html
+++ b/templates/shortcodes/further.html
@@ -14,8 +14,8 @@
               <figure class="image is-4by3">
                 {% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ further.image, width=800, height=600) -%}
                 <img src="{{image.url}}" alt="{{further.alt}}" />
-                {% if further.image.credits %}
-                  <figcaption class="p-1 has-text-white has-background-black is-size-7 is-italic">{{ further.image.credits }}</figcaption>
+                {% if further.credits %}
+                  <figcaption class="p-1 has-text-white has-background-black is-size-7 is-italic">{{ further.credits }}</figcaption>
                 {% endif %}
               </figure>
             </a>
-- 
GitLab