diff --git a/layouts/partials/GetImageUrlOsuny b/layouts/partials/GetImageUrlOsuny index 154bdcdf6e86642bac576f329b2af3ccbad54573..ab640f0e244ce5d25dbf478090d87374afb3ae26 100644 --- a/layouts/partials/GetImageUrlOsuny +++ b/layouts/partials/GetImageUrlOsuny @@ -18,9 +18,13 @@ {{ $crop := "" }} {{ if .crop }} - {{ range $cropValues }} - {{ if eq .crop . }} - {{ $crop = . }} + {{ if eq (string .crop) "true" }} + {{ $crop = "center" }} + {{ else }} + {{ range $cropValues }}& + {{ if eq .crop . }} + {{ $crop = . }} + {{ end }} {{ end }} {{ end }} {{ end }}