{{ if gt (len (where site.RegularPages "Section" "gallery")) 0 }} {{ partial "sections/gallery/gallery.html" . }} {{ partial "sections/gallery/modals.html" . }} {{ end }}