fix: page header images

This commit is contained in:
Ben Goldsworthy 2025-02-20 01:24:28 +01:00
parent a599cb5ebc
commit 397774be5b
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -15,9 +15,9 @@
<!-- Rendering -->
{{- $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 }}