From 6171fa193e2892e4a13b5c5026308f364461c548 Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Thu, 4 Jan 2024 14:21:43 -0500 Subject: [PATCH] Center crop thumbnails --- themes/v2/layouts/shortcodes/thumbnail.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/v2/layouts/shortcodes/thumbnail.html b/themes/v2/layouts/shortcodes/thumbnail.html index ba733fd..82eb27f 100644 --- a/themes/v2/layouts/shortcodes/thumbnail.html +++ b/themes/v2/layouts/shortcodes/thumbnail.html @@ -4,7 +4,7 @@ {{ $img := $orig.Resize $options }} {{ if findRE `\d+x\d+` $options }} - {{ $img = $orig.Fill $options }} + {{ $img = $orig.Fill (printf "%s center" $options) }} {{ end }}