commit 6171fa193e2892e4a13b5c5026308f364461c548
parent 9f569249f8449fb328ef7e032b4f08a463b5a57b
Author: David Eisinger <[email protected]>
Date: Thu, 4 Jan 2024 14:21:43 -0500
Center crop thumbnails
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 }}
<a href="{{ $orig.RelPermalink }}">