From c64140e90403ecaa631d36e7c349f0224ad9c28e Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Tue, 12 Mar 2024 23:50:18 +0100
Subject: [PATCH] Linkify further image and add caption

---
 templates/shortcodes/further.html | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/templates/shortcodes/further.html b/templates/shortcodes/further.html
index ace17e98..2a5c2d13 100644
--- a/templates/shortcodes/further.html
+++ b/templates/shortcodes/further.html
@@ -5,9 +5,14 @@
       <div class="column is-one-third">
         <div class="card">
           <div class="card-image">
-            <figure class="image is-4by3">
-              <img src="{{further.image.url}}" alt="{{further.image.alt}}" />
-            </figure>
+            <a href="{{ get_url(path=further.link)}}">
+              <figure class="image is-4by3">
+                <img src="{{further.image.url}}" alt="{{further.image.alt}}" />
+                {% if further.image.credits %}
+                  <figcaption>{{ further.image.credits }}</figcaption>
+                {% endif %}
+              </figure>
+            </a>
           </div>
           <div class="card-content">
           <p class="title"><a href="{{get_url(path=further.link)}}">{{further.title}}</a></p>
-- 
GitLab