{{ $paginator := .Paginate (where .RegularPagesRecursive "Type" "art") }}
{{ range $paginator.Pages }} {{ partial "render-art" . }} {{ end }}
{{ with $paginator.Prev }} Prev {{ else }} Prev {{ end }} {{ printf "Page %d" $paginator.PageNumber }} {{ with $paginator.Next }} Next {{ else }} Next {{ end }}
{{ $site := resources.Get "js/gallery.js" }} {{ if hugo.IsProduction }} {{ $site = $site | minify | fingerprint | resources.PostProcess }} {{ end }}