{{ range where site.RegularPages "Section" "gallery" }} {{ $modalID := .File.BaseFileName }} {{ $scratch := newScratch }} {{ if .Params.github.repo -}} {{ $scratch.Set "repo" (getJSON "https://api.github.com/repos/" .Params.github.repo) }} {{- end }} {{ end }}