diff --git a/layouts/partials/images/get-image.html b/layouts/partials/images/get-image.html index efc0ca9..758530b 100644 --- a/layouts/partials/images/get-image.html +++ b/layouts/partials/images/get-image.html @@ -15,9 +15,9 @@ -{{- $isResizable := in ( slice "avif" "svg" "gif" ) .MediaType.SubType -}} +{{- $isResizable := not ( in ( slice "avif" "svg" "gif" ) .img.MediaType.SubType ) -}} {{- if $isResizable -}} - {{- with .Resize "1200x webp" -}} + {{- with .img.Resize "1200x webp" -}} {{- .RelPermalink -}} {{- end -}} {{- else }} diff --git a/layouts/partials/single/main-header/item-tile.html b/layouts/partials/single/main-header/item-tile.html index 529c870..1f91270 100644 --- a/layouts/partials/single/main-header/item-tile.html +++ b/layouts/partials/single/main-header/item-tile.html @@ -31,7 +31,7 @@