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. */}} {{/* The markup below cannot be indented due to Markdown. */}}
<div class="paige-gallery"> <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"> <div class="align-items-{{ $align }} column-gap-3 d-flex flex-wrap justify-content-{{ $justify }} row-gap-3">
{{ with $inner }} {{ with $inner }}
{{ . }} {{ . }}
{{ else }} {{ else }}
{{ range $resources }} {{ range $resources }}
{{- partial "paige/image.html" (dict {{- partial "paige/image.html" (dict
"breakpoints" $breakpoints "breakpoints" $breakpoints
"class" $class "class" $class
"densities" $densities "densities" $densities
"fetchpriority" $fetchpriority "fetchpriority" $fetchpriority
"height" $height "height" $height
"linked" $linked "linked" $linked
"loading" $loading "loading" $loading
"maxheight" $maxheight "maxheight" $maxheight
"maxwidth" $maxwidth "maxwidth" $maxwidth
"page" $page "page" $page
"process" $process "process" $process
"resource" . "resource" .
"style" (print $style "; flex: 1 1 auto; object-fit: cover") "style" (print $style "; flex: 1 1 auto; object-fit: cover")
"width" $width "width" $width
) -}} ) -}}
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>
{{ else if eq $type "grid" }} {{ else if eq $type "grid" }}
<div class="container-fluid overflow-hidden px-0"> <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"> <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 }} {{ with $inner }}
{{ . }} {{ . }}
{{ else }} {{ else }}
{{ range $resources }} {{ range $resources }}
{{- partial "paige/image.html" (dict {{- partial "paige/image.html" (dict
"breakpoints" $breakpoints "breakpoints" $breakpoints
"class" $class "class" $class
"densities" $densities "densities" $densities
"fetchpriority" $fetchpriority "fetchpriority" $fetchpriority
"height" $height "height" $height
"linked" $linked "linked" $linked
"loading" $loading "loading" $loading
"maxheight" $maxheight "maxheight" $maxheight
"maxwidth" $maxwidth "maxwidth" $maxwidth
"page" $page "page" $page
"process" $process "process" $process
"resource" . "resource" .
"style" (print $style "; height: auto; max-width: 100%") "style" (print $style "; height: auto; max-width: 100%")
"width" $width "width" $width
) -}} ) -}}
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>
</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"> <div class="align-items-{{ $align }} column-gap-3 d-flex flex-wrap justify-content-{{ $justify }} row-gap-3">
{{ with $inner }} {{ with $inner }}
{{ . }} {{ . }}
{{ else }} {{ else }}
{{ range $resources }} {{ range $resources }}
{{- partial "paige/image.html" (dict {{- partial "paige/image.html" (dict
"breakpoints" $breakpoints "breakpoints" $breakpoints
"class" $class "class" $class
"densities" $densities "densities" $densities
"fetchpriority" $fetchpriority "fetchpriority" $fetchpriority
"height" $height "height" $height
"linked" $linked "linked" $linked
"loading" $loading "loading" $loading
"maxheight" $maxheight "maxheight" $maxheight
"maxwidth" $maxwidth "maxwidth" $maxwidth
"page" $page "page" $page
"process" $process "process" $process
"resource" . "resource" .
"style" (print $style "; height: auto; max-width: 100%") "style" (print $style "; height: auto; max-width: 100%")
"width" $width "width" $width
) -}} ) -}}
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>
{{ else }} {{ else }}
{{ errorf "layouts/shortcodes/paige/gallery.html: invalid type: %q" $type }} {{ errorf "layouts/shortcodes/paige/gallery.html: invalid type: %q" $type }}
{{ end }} {{ end }}
</div> </div>

Loading…
Cancel
Save