diff --git a/layouts/partials/author-extra.html b/layouts/partials/author-extra.html index 4b27831c..771b724b 100644 --- a/layouts/partials/author-extra.html +++ b/layouts/partials/author-extra.html @@ -4,7 +4,9 @@ {{ $authorImage := resources.Get . }} {{ if $authorImage }} {{ if not $disableImageOptimization }} - {{ $authorImage = $authorImage.Fill "192x192" }} + {{ if not (eq $authorImage.MediaType.SubType "svg") -}} + {{ $authorImage = $authorImage.Fill "192x192" }} + {{ end }} {{ end }} @@ -34,4 +36,4 @@ - \ No newline at end of file +