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 }}