{{ $path := print "content/gallery/" (.Get "src") }} {{ $url := print (.Get "src") }} {{ range (readDir $path) }} {{/* don't try to display .DS_Store or directories */}} {{ if and (ne .Name ".DS_Store") (not .IsDir) }} {{ $src := print "/it/gallery" "/" $url "/" .Name }} {{/* troubleshoot the $src variable as needed */}}
{{ end }} {{ end }}