Center crop thumbnails
This commit is contained in:
@@ -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 }}">
|
||||||
|
|||||||
Reference in New Issue
Block a user