From 1bdd7459fb0eec45a2b758ecf7584d4141769da0 Mon Sep 17 00:00:00 2001 From: valnaumov Date: Mon, 23 Dec 2024 19:26:29 +0800 Subject: [PATCH] Fix #1624. Search for the image in the page resources. Fixes image URL for multilingual sites when the image resource is only defined for the default language. --- layouts/shortcodes/figure.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 8c93effe..df8bd8ec 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -5,7 +5,14 @@ {{- if .Get "link" -}} {{- end }} -