{{ $p := .Params }} {{ range $p }} {{- $pic := index ($.Page.Resources.ByType "image") . -}} {{ end }}