From 397774be5b4d215b758b8f0e2eb11060c08f10ed Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Thu, 20 Feb 2025 01:24:28 +0100 Subject: [PATCH] fix: page header images --- layouts/partials/images/get-image.html | 4 ++-- layouts/partials/single/main-header/item-tile.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 @@