{{ $lang := ( .Get 0 ) }} {{ $srcFiles := (resources.Match (printf "images/screenshots/%s/*" $lang)) }} {{ $tinyw := default "500" }} {{ $smallw := default "800" }} {{ $mediumw := default "1200" }} {{ $largew := default "2400" }} {{ range $i, $src := $srcFiles }} {{ $tiny := $src.Resize (printf "%sx" $tinyw) }} {{ $small := $src.Resize (printf "%sx" $smallw) }} {{ $medium:= $src.Resize (printf "%sx" $mediumw) }} {{ $large := $src.Resize (printf "%sx" $largew) }} {{ end }}