From 984f2e9ba3a790f1b20c5e4319dcfb190e1b21a7 Mon Sep 17 00:00:00 2001 From: gribse Date: Mon, 2 Jun 2025 23:04:11 +0200 Subject: [PATCH] images 500px par defaut --- layouts/shortcodes/figure.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index d1649e1..97bde9c 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -9,7 +9,7 @@ Documentation and licence at https://github.com/liwenyip/hugo-easy-gallery/ {{- $thumb := .Get "src" | default (printf "%s." (.Get "thumb") | replace (.Get "link") ".") }} {{- $thumbResource := $.Page.Resources.GetMatch $thumb }} -{{- $fitSize := .Get "size" | default "400" }} +{{- $fitSize := .Get "size" | default "500" }} {{- if $thumbResource }} {{- $thumbResource = $thumbResource.Fit (printf "%[1]sx%[1]s webp q85" $fitSize) -}} {{- end }}