From 1d103c1451eb19d98bc94161c210b7b503cfc8b6 Mon Sep 17 00:00:00 2001 From: Wolf Noble <1680659+wolfspyre@users.noreply.github.com> Date: Mon, 28 Aug 2023 21:06:03 -0500 Subject: [PATCH] Update background.html to tolerate svg author images --- layouts/partials/home/background.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/partials/home/background.html b/layouts/partials/home/background.html index 4ea65da9..b059d3d2 100644 --- a/layouts/partials/home/background.html +++ b/layouts/partials/home/background.html @@ -23,9 +23,11 @@ {{ $authorImage := resources.Get . }} {{ if $authorImage }} {{ if not $disableImageOptimization }} - {{ $authorImage = $authorImage.Fill "288x288" }} + {{- if not (eq $authorImage.MediaType.SubType "svg") -}} + {{ $authorImage = $authorImage.Fill "288x288" }} + {{ end }} {{ end }} - {{ $.Site.Author.name | default {{ end }} {{ end }}