@@ -18,13 +18,19 @@
{{- $image := partial "helper/image" (dict "Image" $link.image "Resources" $.Resources) -}}
{{- with $image -}}
-
+ {{ partial "helper/thumbnail-image" (dict
+ "Resource" .Resource
+ "Width" 60
+ "Height" 60
+ "Resize" $.Site.Params.ImageProcessing.Thumbnail.Enabled
+ "Attributes" (dict
+ "src" $image.Permalink
+ "alt" $link.title
+ "loading" "lazy"
+ "width" .Width
+ "height" .Height
+ )
+ ) }}
{{ end }}
diff --git a/layouts/list.html b/layouts/list.html
index d44dc29..d30f851 100644
--- a/layouts/list.html
+++ b/layouts/list.html
@@ -20,10 +20,19 @@
{{- $image := partial "helper/image" (dict "Image" .Params.image "Resources" .Resources) -}}
{{ if $image }}
-
+ {{ partial "helper/thumbnail-image" (dict
+ "Resource" $image.Resource
+ "Width" 60
+ "Height" 60
+ "Resize" .Site.Params.ImageProcessing.Thumbnail.Enabled
+ "Attributes" (dict
+ "src" $image.Permalink
+ "alt" .Title
+ "loading" "lazy"
+ "width" $image.Width
+ "height" $image.Height
+ )
+ ) }}
{{ end }}