From 35b6c2eeaea2c986188825fc7cb136c10629ae06 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Thu, 17 Mar 2022 23:30:46 -0700 Subject: [PATCH] Exclude dark image variants from print media Save some ink, yo --- layouts/shortcodes/picture.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/shortcodes/picture.html b/layouts/shortcodes/picture.html index 8b16bfc..0fdaec4 100644 --- a/layouts/shortcodes/picture.html +++ b/layouts/shortcodes/picture.html @@ -14,35 +14,35 @@ + media="screen and (prefers-color-scheme: dark)"> {{ end -}} {{ with $dark_jxl -}} {{ $dark_jxl_src := . | resources.Fingerprint "md5" -}} + media="screen and (prefers-color-scheme: dark)"> {{ end -}} {{ with $dark_avif -}} {{ $dark_avif_src := . | resources.Fingerprint "md5" -}} + media="screen and (prefers-color-scheme: dark)"> {{ end -}} {{ with $dark_webp -}} {{ $dark_webp_src := . | resources.Fingerprint "md5" -}} + media="screen and (prefers-color-scheme: dark)"> {{ end -}} {{ with $dark_png -}} {{ $dark_png_src := . | resources.Fingerprint "md5" -}} + media="screen and (prefers-color-scheme: dark)"> {{ end -}} {{ with $light_svg -}} {{ $light_svg_src := . | resources.Fingerprint "md5" -}}