diff --git a/layouts/partials/author.html b/layouts/partials/author.html
index 84c6e9d9..9034020a 100644
--- a/layouts/partials/author.html
+++ b/layouts/partials/author.html
@@ -1,19 +1,13 @@
{{ if .Params.showAuthor | default (.Site.Params.article.showAuthor | default true) }}
+{{- warnf "%s called. Author %s should be shown." .Page.File .Site.Language.Params.Author.name }}
+ {{ $lazy := .Params.enableImageLazyLoading|default .Site.Params.enableImageLazyLoading | default true }}
+ {{ $altText := ($.Site.Language.Params.Author.name | default "Author") }}
{{ with .Site.Language.Params.Author.image }}
{{ $authorImage := resources.Get . }}
{{ if $authorImage }}
- {{ $authorImage := $authorImage.Fill "192x192 Center" }}
-
+ {{ $imgClass := "!mb-0 !mt-0 me-4 w-24 h-auto rounded-full" }}
+ {{ partial "picture.html" (dict "img" $authorImage "alt" $altText "class" $imgClass "lazy" $lazy ) }}
{{ end }}
{{ end }}
diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html
index a9063d43..2c352288 100644
--- a/layouts/partials/home/profile.html
+++ b/layouts/partials/home/profile.html
@@ -4,17 +4,13 @@
{{ end }} flex flex-col items-center justify-center text-center"
>
+ {{ $lazy := .Params.enableImageLazyLoading | default .Site.Params.enableImageLazyLoading | default true }}
+ {{ $altText := ($.Site.Language.Params.Author.name | default "Author") }}
{{ with .Site.Language.Params.Author.image }}
{{ $authorImage := resources.Get . }}
{{ if $authorImage }}
- {{ $authorImage := $authorImage.Fill "288x288 Center" }}
-
+ {{ $imgClass := "mb-2 h-auto w-36 rounded-full" }}
+ {{ partial "picture.html" (dict "img" $authorImage "alt" $altText "class" $imgClass "lazy" $lazy) }}
{{ end }}
{{ end }}