Center crop thumbnails

This commit is contained in:
David Eisinger
2024-01-04 14:21:43 -05:00
parent 9f569249f8
commit 6171fa193e

View File

@@ -4,7 +4,7 @@
{{ $img := $orig.Resize $options }} {{ $img := $orig.Resize $options }}
{{ if findRE `\d+x\d+` $options }} {{ if findRE `\d+x\d+` $options }}
{{ $img = $orig.Fill $options }} {{ $img = $orig.Fill (printf "%s center" $options) }}
{{ end }} {{ end }}
<a href="{{ $orig.RelPermalink }}"> <a href="{{ $orig.RelPermalink }}">