From 8c20b503616f2be677334685e4257e4cd87b358c Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 23 Nov 2020 23:22:32 +0000 Subject: [PATCH] fix(axe): gallery alt --- wowchemy/layouts/shortcodes/gallery.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wowchemy/layouts/shortcodes/gallery.html b/wowchemy/layouts/shortcodes/gallery.html index 2b5dd508..d9874879 100644 --- a/wowchemy/layouts/shortcodes/gallery.html +++ b/wowchemy/layouts/shortcodes/gallery.html @@ -28,9 +28,9 @@ {{ $caption = .caption }} {{ end }} {{ end }} - - {{/* Width & height (or low res src) required for lazy loading. */}} - + + {{ plainify $caption | default $filename }}{{/* Width & height (or low res src) required for lazy loading. */}} + {{end}} {{else}} @@ -48,7 +48,7 @@ {{ end }} {{/* Don't lazy load image as cannot init image size from non-Hugo asset, resulting in inaccurate anchor scrolling & active link highlighting. */}} - + {{ plainify .caption | default .image }} {{end}} {{else}}