From ad5c71467bd72083a2d5eff2269c98e9b138ec2c Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Thu, 26 Jan 2023 11:59:03 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9Elayouts/shortcodes/gallery.html?= =?UTF-8?q?=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/shortcodes/gallery.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/gallery.html b/layouts/shortcodes/gallery.html index 97be09e1..13d33d94 100644 --- a/layouts/shortcodes/gallery.html +++ b/layouts/shortcodes/gallery.html @@ -16,7 +16,7 @@ Documentation and licence at https://github.com/liwenyip/hugo-easy-gallery/ {{- $isimg := lower .Name | findRE "\\.(gif|jpg|jpeg|tiff|png|bmp|webp|avif|jxl)" }} {{- if and $isimg (not $isthumb) }} {{- $caption := .Name | replaceRE "\\..*" "" | humanize }} - {{- $linkURL := print $baseURL ($.Get "dir") "/" .Name | absURL }} + {{- $linkURL := print $baseURL "/" ($.Get "dir") "/" .Name | absURL }} {{- $thumb := .Name | replaceRE "(\\.)" ($thumbext | printf "%s.") }} {{- $thumbexists := where $files "Name" $thumb }} {{- $thumbURL := print $baseURL ($.Get "dir") "/" $thumb | absURL }}