diff --git a/layouts/partials/author.html b/layouts/partials/author.html index f519db94..22c199f5 100644 --- a/layouts/partials/author.html +++ b/layouts/partials/author.html @@ -4,7 +4,9 @@ {{ $authorImage := resources.Get . }} {{ if $authorImage }} {{ if not $disableImageOptimization }} + {{- if not (eq $authorImage.MediaType.SubType "svg") -}} {{ $authorImage = $authorImage.Fill "192x192" }} + {{- end -}} {{ end }} {{ $.Site.Author.name | default @@ -24,4 +26,4 @@ {{ end }}
{{ partialCached "author-links.html" . }}
- \ No newline at end of file +