{{ define "user/fragments/repoCard" }} {{/* root, repo, fullName [,starButton [,starData{IsStarred,SubjectAt,StarCount,RepoName} [,compact]]] */}} {{ $root := index . 0 }} {{ $repo := index . 1 }} {{ $fullName := index . 2 }} {{ $starButton := false }} {{ $starData := dict }} {{ $compact := false }} {{ if gt (len .) 3 }} {{ $starButton = index . 3 }} {{ if gt (len .) 4 }} {{ $starData = index . 4 }} {{ if gt (len .) 5 }} {{ $compact = index . 5 }} {{ end }} {{ end }} {{ end }} {{ with $repo }}