diff --git a/layouts/shortcodes/paige/gallery.html b/layouts/shortcodes/paige/gallery.html
index fe3041ac..0de2c939 100644
--- a/layouts/shortcodes/paige/gallery.html
+++ b/layouts/shortcodes/paige/gallery.html
@@ -42,84 +42,84 @@
{{/* The markup below cannot be indented due to Markdown. */}}
- {{ if eq $type "filled-rows" }}
+{{ if eq $type "filled-rows" }}
- {{ with $inner }}
- {{ . }}
- {{ else }}
- {{ range $resources }}
- {{- partial "paige/image.html" (dict
- "breakpoints" $breakpoints
- "class" $class
- "densities" $densities
- "fetchpriority" $fetchpriority
- "height" $height
- "linked" $linked
- "loading" $loading
- "maxheight" $maxheight
- "maxwidth" $maxwidth
- "page" $page
- "process" $process
- "resource" .
- "style" (print $style "; flex: 1 1 auto; object-fit: cover")
- "width" $width
- ) -}}
- {{ end }}
- {{ end }}
-
- {{ else if eq $type "grid" }}
+{{ with $inner }}
+{{ . }}
+{{ else }}
+{{ range $resources }}
+{{- partial "paige/image.html" (dict
+ "breakpoints" $breakpoints
+ "class" $class
+ "densities" $densities
+ "fetchpriority" $fetchpriority
+ "height" $height
+ "linked" $linked
+ "loading" $loading
+ "maxheight" $maxheight
+ "maxwidth" $maxwidth
+ "page" $page
+ "process" $process
+ "resource" .
+ "style" (print $style "; flex: 1 1 auto; object-fit: cover")
+ "width" $width
+) -}}
+{{ end }}
+{{ end }}
+
+{{ else if eq $type "grid" }}
- {{ with $inner }}
- {{ . }}
- {{ else }}
- {{ range $resources }}
- {{- partial "paige/image.html" (dict
- "breakpoints" $breakpoints
- "class" $class
- "densities" $densities
- "fetchpriority" $fetchpriority
- "height" $height
- "linked" $linked
- "loading" $loading
- "maxheight" $maxheight
- "maxwidth" $maxwidth
- "page" $page
- "process" $process
- "resource" .
- "style" (print $style "; height: auto; max-width: 100%")
- "width" $width
- ) -}}
- {{ end }}
- {{ end }}
+{{ with $inner }}
+{{ . }}
+{{ else }}
+{{ range $resources }}
+{{- partial "paige/image.html" (dict
+ "breakpoints" $breakpoints
+ "class" $class
+ "densities" $densities
+ "fetchpriority" $fetchpriority
+ "height" $height
+ "linked" $linked
+ "loading" $loading
+ "maxheight" $maxheight
+ "maxwidth" $maxwidth
+ "page" $page
+ "process" $process
+ "resource" .
+ "style" (print $style "; height: auto; max-width: 100%")
+ "width" $width
+) -}}
+{{ end }}
+{{ end }}
- {{ else if eq $type "rows" }}
+{{ else if eq $type "rows" }}
- {{ with $inner }}
- {{ . }}
- {{ else }}
- {{ range $resources }}
- {{- partial "paige/image.html" (dict
- "breakpoints" $breakpoints
- "class" $class
- "densities" $densities
- "fetchpriority" $fetchpriority
- "height" $height
- "linked" $linked
- "loading" $loading
- "maxheight" $maxheight
- "maxwidth" $maxwidth
- "page" $page
- "process" $process
- "resource" .
- "style" (print $style "; height: auto; max-width: 100%")
- "width" $width
- ) -}}
- {{ end }}
- {{ end }}
+{{ with $inner }}
+{{ . }}
+{{ else }}
+{{ range $resources }}
+{{- partial "paige/image.html" (dict
+ "breakpoints" $breakpoints
+ "class" $class
+ "densities" $densities
+ "fetchpriority" $fetchpriority
+ "height" $height
+ "linked" $linked
+ "loading" $loading
+ "maxheight" $maxheight
+ "maxwidth" $maxwidth
+ "page" $page
+ "process" $process
+ "resource" .
+ "style" (print $style "; height: auto; max-width: 100%")
+ "width" $width
+) -}}
+{{ end }}
+{{ end }}
- {{ else }}
- {{ errorf "layouts/shortcodes/paige/gallery.html: invalid type: %q" $type }}
- {{ end }}
+{{ else }}
+{{ errorf "layouts/shortcodes/paige/gallery.html: invalid type: %q" $type }}
+{{ end }}