diff --git a/layouts/shortcodes/gallery.html b/layouts/shortcodes/gallery.html
index 3d48c6ea..8eb74d70 100644
--- a/layouts/shortcodes/gallery.html
+++ b/layouts/shortcodes/gallery.html
@@ -47,7 +47,7 @@
{{ end }}
{{/* Don't lazy load image as cannot init image size from non-Hugo asset, resulting in inaccurate anchor scrolling & active link highlighting. */}}
-
+
{{end}}
{{else}}