{{ define "title" }}commits · {{ .RepoInfo.FullName }}{{ end }} {{ define "repoContent" }}
{{ range $index, $commit := .Commits }} {{ $messageParts := splitN $commit.Message "\n\n" 2 }} {{ end }}
Author Commit Message Date
{{ $didOrHandle := index $.EmailToDidOrHandle $commit.Author.Email }} {{ if $didOrHandle }} {{ $didOrHandle }} {{ else }} {{ $commit.Author.Name }} {{ end }} {{ slice $commit.Hash.String 0 8 }}
{{ i "folder-code" "w-4 h-4" }}
{{ if eq $index 0 }}

{{ index $messageParts 0 }}

{{ if gt (len $messageParts) 1 }}

{{ nl2br (unwrapText (index $messageParts 1)) }}

{{ end }}
{{ else }}
{{ index $messageParts 0 }} {{ if gt (len $messageParts) 1 }} {{ end }}
{{ end }}
{{ timeFmt $commit.Author.When }}
{{ $commits_len := len .Commits }}
{{ if gt .Page 1 }}{{ i "chevron-left" "w-4 h-4" }} previous{{ else }}
{{ end }} {{ if eq $commits_len 60 }}next {{ i "chevron-right" "w-4 h-4" }}{{ end }}
{{ end }}