{{ define "title" }}commits · {{ .RepoInfo.FullName }}{{ end }} {{ define "repoContent" }}
{{ $commit := index .Commits 0 }} {{ $messageParts := splitN $commit.Message "\n\n" 2 }}

{{ index $messageParts 0 }}

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

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

{{ end }}
{{ slice $commit.Hash.String }} {{ $didOrHandle := index $.EmailToDidOrHandle $commit.Author.Email }} {{ if $didOrHandle }} {{ $didOrHandle }} {{ else }} {{ $commit.Author.Name }} {{ end }}
{{ timeFmt $commit.Author.When }}
{{ end }} {{ define "repoAfter" }}
{{ $end := length .Commits }} {{ $commits := subslice .Commits 1 $end }} {{ range $commits }}
{{ $messageParts := splitN .Message "\n\n" 2 }}
{{ index $messageParts 0 }} {{ if gt (len $messageParts) 1 }} {{ end }}
{{ if gt (len $messageParts) 1 }} {{ end }}
{{ slice .Hash.String 0 8 }} {{ $didOrHandle := index $.EmailToDidOrHandle .Author.Email }} {{ if $didOrHandle }} {{ $didOrHandle }} {{ else }} {{ .Author.Name }} {{ end }}
{{ timeFmt .Author.When }}
{{ end }}
{{ $commits_len := len .Commits }}
{{ if gt .Page 1 }} {{ i "chevron-left" "w-4 h-4" }} previous {{ else }}
{{ end }} {{ if eq $commits_len 30 }} next {{ i "chevron-right" "w-4 h-4" }} {{ end }}
{{ end }}