From 566539df6708080d553723f3e91fd10a0b59bdfc Mon Sep 17 00:00:00 2001 From: Seirdy Date: Sun, 14 Jul 2024 01:49:20 -0400 Subject: [PATCH] make alt attr use double quotes --- layouts/shortcodes/picture.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/picture.html b/layouts/shortcodes/picture.html index 3c95d49..e0dd899 100644 --- a/layouts/shortcodes/picture.html +++ b/layouts/shortcodes/picture.html @@ -12,7 +12,7 @@ {{ $dark_webp := resources.GetMatch (printf "/p/%s_dark.webp" (.Get "name")) -}} {{ $dark_avif := resources.GetMatch (printf "/p/%s_dark.avif" (.Get "name")) -}} {{ $dark_jxl := resources.GetMatch (printf "/p/%s_dark.jxl" (.Get "name")) -}} - +{{ $alt := .Get "alt" -}} {{- $orig_img := $light_png -}} {{- $orig_img_type := "image/png" -}} {{- $orig_img_dark := $dark_png -}} @@ -119,7 +119,7 @@ type="{{ $orig_img_type }}" />