{{ range .Params.authors }} {{ $handle := . }} {{ $img := printf "https://github.com/%s.png" $handle }} {{ $link := printf "https://github.com/%s" $handle }} {{ $apiUrl := printf "https://api.github.com/users/%s" $handle }} {{ $name := $handle }} {{ $displayName := $handle }} {{ $result := try (resources.GetRemote $apiUrl) }} {{ with $result.Value }} {{ $data := . | transform.Unmarshal }} {{ if $data.name }} {{ $name = $data.name }} {{ $displayName = printf "%s (%s)" $data.name $handle }} {{ end }} {{ end }} Author avatar for {{ $handle }} {{ $displayName }} {{ end }}