{{- range $index, $el := . -}} {{ $photo := $s }} {{ $thumb := replace $photo "-800." "-200."}} {{- end -}}