{{ define "content" }} {{ $participants := where .Site.Pages ".Params.type" "participant" }} {{ range $participants }} {{ if .Params.sponsored_by }} {{ $.Scratch.Add .Params.sponsored_by (slice .)}} {{end }} {{ end }}