{{- range $index, $el := . -}} {{ $thumbnails := slice .Params.thumbnail }} {{ $thumnail = index $thumbnails 0}} {{- end -}}