{{ define "title" }}commits · {{ .RepoInfo.FullName }}{{ end }} {{ define "repoContent" }} commits Author Commit Message Date {{ range $index, $commit := .Commits }} {{ $messageParts := splitN $commit.Message "\n\n" 2 }} {{ $didOrHandle := index $.EmailToDidOrHandle $commit.Author.Email }} {{ if $didOrHandle }} {{ $didOrHandle }} {{ else }} {{ $commit.Author.Name }} {{ end }} {{ slice $commit.Hash.String 0 8 }} this.innerHTML=`{{ i "copy" "w-4 h-4" }}`, 1500)"> {{ i "copy" "w-4 h-4" }} {{ i "folder-code" "w-4 h-4" }} {{ index $messageParts 0 }} {{ if gt (len $messageParts) 1 }} {{ i "ellipsis" "w-3 h-3" }} {{ nl2br (index $messageParts 1) }} {{ end }} {{ timeFmt $commit.Author.When }} {{ end }} {{ range $index, $commit := .Commits }} {{ $messageParts := splitN $commit.Message "\n\n" 2 }} {{ index $messageParts 0 }} {{ if gt (len $messageParts) 1 }} {{ i "ellipsis" "w-3 h-3" }} {{ end }} {{ if gt (len $messageParts) 1 }} {{ nl2br (index $messageParts 1) }} {{ end }} {{ i "folder-code" "w-4 h-4" }} {{ slice $commit.Hash.String 0 8 }} {{ $didOrHandle := index $.EmailToDidOrHandle $commit.Author.Email }} {{ if $didOrHandle }}{{ $didOrHandle }}{{ else }}{{ $commit.Author.Name }}{{ end }} {{ shortTimeFmt $commit.Author.When }} {{ end }} {{ end }} {{ define "repoAfter" }} {{ $commits_len := len .Commits }}
{{ nl2br (index $messageParts 1) }}