From 3c621eb7552df515b0aa12a35f2670c87bff318e Mon Sep 17 00:00:00 2001 From: Cyril Mottier Date: Mon, 3 Mar 2025 16:54:21 +0100 Subject: [PATCH] fix: align author image display size & actual size (#284) * fix: align image display size & actual size * fix: use appropriate size * fix: deal with displays densities Use secret attribute to better expose display density-compliant images. Being the only image really showed in the entire theme, it deserves polish. --- layouts/partials/bio.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/layouts/partials/bio.html b/layouts/partials/bio.html index a2b9c489..025cac37 100644 --- a/layouts/partials/bio.html +++ b/layouts/partials/bio.html @@ -8,9 +8,16 @@ {{ else }} - {{ $image := $image.Fill "100x100 webp" }} - {{ $avatar_img_alt }} + {{ $image1x := $image.Fill "70x70 webp" }} + {{ $image2x := $image.Fill "140x140 webp" }} + {{ $image3x := $image.Fill "210x210 webp" }} + {{ $avatar_img_alt }} {{ end }} {{ end }}

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