{{ $align := .Get "align" | default "center" }} {{ $breakpoints := .Get "breakpoints" }} {{ $class := .Get "class" }} {{ $densities := .Get "densities" }} {{ $height := .Get "height" }} {{ $images := .Get 0 | default (.Get "images") }} {{ $justify := .Get "justify" | default "center" }} {{ $linked := .Get "linked" }} {{ $loading := .Get "loading" }} {{ $maxHeight := .Get "maxheight" }} {{ $maxWidth := .Get "maxwidth" }} {{ $page := .Page }} {{ $priority := .Get "fetchpriority" }} {{ $process := .Get "process" }} {{ $style := .Get "style" }} {{ $type := .Get "type" | default "rows" }} {{ $width := .Get "width" }} {{ $inner := chomp .InnerDeindent }} {{ $resources := slice }} {{ if and (not $images) (not $inner) }} {{ errorf "layouts/shortcodes/paige/gallery.html: no content" }} {{ end }} {{ if not $inner }} {{ with $images }} {{ with $.Page.Resources.Match . }} {{ $resources = . }} {{ else }} {{ $resources = resources.Match . }} {{ end }} {{ else }} {{ with .Page.Resources.ByType "image" }} {{ $resources = . }} {{ else }} {{ $resources = resources.ByType "image" }} {{ end }} {{ end }} {{ end }} {{/* The markup below cannot be indented due to nested shortcodes within Markdown. */}}