diff --git a/layouts/index.html b/layouts/index.html
index 2fe1918..ffe1d91 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -16,11 +16,11 @@
{{ $images := $gallery.Resources.ByType "image" }}
{{ $index := len $images }}
{{ range $images }}
- {{ $index = sub $index 1}}
-
+ {{ $index = sub $index 1}}
+
{{ end }}