From 984bb01c791c495711ebd9d8638e4ff59c60c281 Mon Sep 17 00:00:00 2001 From: Wolf Noble Date: Thu, 26 Oct 2023 20:31:15 -0500 Subject: [PATCH] :children_crossing: :adhesive_bandage: add logic braces to sidestep image sizing when using a vector image for the author --- layouts/partials/author.html | 4 +++- layouts/partials/home/profile.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/partials/author.html b/layouts/partials/author.html index 2d29aa82..c0985865 100644 --- a/layouts/partials/author.html +++ b/layouts/partials/author.html @@ -3,7 +3,9 @@ {{ with .Site.Author.image }} {{ $authorImage := resources.Get . }} {{ if $authorImage }} - {{ $authorImage := $authorImage.Fill "192x192 Center" }} + {{- if ne $authorImage.MediaType.SubType "svg" }} + {{ $authorImage := $authorImage.Fill "192x192 Center" }} + {{- end }}