From b855a609e0895fe655615bc789ca113b40fab963 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Tue, 12 Mar 2024 23:46:29 +0100 Subject: [PATCH] [WIP] Add figure caption to blog section --- templates/blog/card.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/blog/card.html b/templates/blog/card.html index 1ea0a09b..50ae9a2b 100644 --- a/templates/blog/card.html +++ b/templates/blog/card.html @@ -1,8 +1,11 @@ <div class="card"> <div class="card-image"> - <figure class="image is-4by3"> - <a href="{{ post.permalink }}"><img src="{{ get_url(path="@/" ~ post.relative_path, trailing_slash=true) }}{{ post.extra.depiction.image | safe }}" alt="{{ post.extra.depiction.alt }}" /></a> - </figure> + <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> + </figure> + </a> </div> <div class="card-content"> <a href="{{ post.permalink }}"><h3 class="title is-3">{{ post.title }}</h3></a> -- GitLab