{{ $dir := string (.Get "gallery_dir") }}
{{ range (.Page.Resources.Match (print $dir "/*")) }} {{- $imagetitle := path.BaseName .Name}}
{{ $imagetitle }}
{{ end }}