From 4bd7e96182752226cc1a22210e94ef85fa3ec6e7 Mon Sep 17 00:00:00 2001 From: Alexander Avery Date: Mon, 26 Feb 2024 16:19:04 -0500 Subject: [PATCH] do not bother computing width of images --- layouts/partials/image.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/layouts/partials/image.html b/layouts/partials/image.html index 1db1aa1..c0a0e03 100644 --- a/layouts/partials/image.html +++ b/layouts/partials/image.html @@ -9,13 +9,12 @@ {{ printf "%s %dw" .RelPermalink .Width }} {{- end -}}" - sizes=" - {{- with (.Resize "600x q40") -}} - {{- printf "(max-width: 700px) %dpx," .Width -}} - {{- end -}} - 800px" + sizes="(max-width: 900px) 600px, (min-width: 901px) 1200px" - src="{{ (.Resize "1200x q65").RelPermalink }}" + src=" + {{- with (.Resize "600x q40") -}} + {{ .RelPermalink }} + {{- end -}}" {{ end }} alt="{{ .alt }}" >