From 058de79991699f6ef1b1ff3321efd3484518db2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20K=C3=A1n=C4=9B?= Date: Sun, 3 May 2020 14:55:51 +0200 Subject: [PATCH] Remove the sizes attribute It defaults to 100vw, which may be wasteful sometimes, but it guarantees smooth experience. I am not aware of any simple way of requesting the current widescreen behavior "make it as wide as possible while not exceeding 30rem height" using the sizes attribute. This setting may be especially wasteful for portrait images, as their rendered width will be much smaller than the viewport width. --- themes/patek/layouts/shortcodes/blogPhoto.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/patek/layouts/shortcodes/blogPhoto.html b/themes/patek/layouts/shortcodes/blogPhoto.html index ccd3a23..e160b54 100644 --- a/themes/patek/layouts/shortcodes/blogPhoto.html +++ b/themes/patek/layouts/shortcodes/blogPhoto.html @@ -46,6 +46,6 @@ where possible named params are: {{- end -}}
- {{ $alt }} + {{ $alt }} {{ if (ne $caption false) }}
{{ $caption }}
{{ end }}