Dedent gallery markup

master
Will Faught 2 years ago
parent c19bdc08fb
commit 358ebe7bd5

@ -42,84 +42,84 @@
{{/* The markup below cannot be indented due to Markdown. */}}
<div class="paige-gallery">
{{ if eq $type "filled-rows" }}
{{ if eq $type "filled-rows" }}
<div class="align-items-{{ $align }} column-gap-3 d-flex flex-wrap justify-content-{{ $justify }} row-gap-3">
{{ 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 }}
</div>
{{ 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 }}
</div>
{{ else if eq $type "grid" }}
<div class="container-fluid overflow-hidden px-0">
<div class="align-items-{{ $align }} gx-3 gy-3 justify-content-{{ $justify }} row row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 row-cols-xl-5 row-cols-xxl-6">
{{ 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 }}
</div>
</div>
{{ else if eq $type "rows" }}
{{ else if eq $type "rows" }}
<div class="align-items-{{ $align }} column-gap-3 d-flex flex-wrap justify-content-{{ $justify }} row-gap-3">
{{ 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 }}
</div>
{{ else }}
{{ errorf "layouts/shortcodes/paige/gallery.html: invalid type: %q" $type }}
{{ end }}
{{ else }}
{{ errorf "layouts/shortcodes/paige/gallery.html: invalid type: %q" $type }}
{{ end }}
</div>

Loading…
Cancel
Save