From 6cb3aa5e6e3a1ffd3cea0b927ac60e2e972544fe Mon Sep 17 00:00:00 2001 From: PCloud Date: Fri, 24 May 2024 18:32:35 +0100 Subject: [PATCH] feat: optimise sizes option --- layouts/_default/summary.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index e4b38b720..81cb6b9af 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -11,7 +11,7 @@ (dict "Process" "fill 1200x360 Center webp q75" "descriptor" "1200w") (dict "Process" "fill 1600x480 Center webp q75" "descriptor" "1600w") }} - {{- dict "Src" . "Title" $.Title "Resources" $.Resources "Loading" "eager" "Width" "800" "Height" "240" "Sizes" "800px" "Optim" $optim "Alt" (printf "Featured image for %v" $.Title) | partial "plugin/image.html" -}} + {{- dict "Src" . "Title" $.Title "Resources" $.Resources "Loading" "eager" "Width" "800" "Height" "240" "Sizes" "(max-width: 680px) 100vw, (max-width: 1000px) 80vw, (max-width: 1440px) 56vw, 800px" "Optim" $optim "Alt" (printf "Featured image for %v" $.Title) | partial "plugin/image.html" -}} {{- end -}}