From 20c3fe4a1c94cc2d42de5af4ca34a579405374d8 Mon Sep 17 00:00:00 2001 From: Santacloud <5811812+TheSantacloud@users.noreply.github.com> Date: Thu, 26 Sep 2024 06:50:15 +0300 Subject: [PATCH] feat: add svg author image support (#214) Co-authored-by: Dor Munis <5811812+dormunis@users.noreply.github.com> --- layouts/partials/bio.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/partials/bio.html b/layouts/partials/bio.html index 0460549..a2b9c48 100644 --- a/layouts/partials/bio.html +++ b/layouts/partials/bio.html @@ -3,10 +3,16 @@ {{ $image := resources.Get $avatar_img }}
{{ with $image }} + {{ if eq .MediaType.SubType "svg" }} + + + + {{ else }} {{ $image := $image.Fill "100x100 webp" }} {{ $avatar_img_alt }} {{ end }} + {{ end }}

{{ .Site.Params.author.intro }}

{{ .Site.Params.author.description }}