{{ define "title" }} commit {{ .Diff.Commit.This }} · {{ .RepoInfo.FullName }} {{ end }} {{ define "repoContent" }} {{ $repo := .RepoInfo.FullName }} {{ $commit := .Diff.Commit }}
{{ $messageParts := splitN $commit.Message "\n\n" 2 }}

{{ index $messageParts 0 }}

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

{{ nl2br (index $messageParts 1) }}

{{ end }}

{{ $didOrHandle := index $.EmailToDidOrHandle $commit.Author.Email }} {{ if $didOrHandle }} {{ $didOrHandle }} {{ else }} {{ $commit.Author.Name }} {{ end }} {{ timeFmt $commit.Author.When }}

{{ slice $commit.This 0 8 }} {{ if $commit.Parent }} {{ i "arrow-left" "w-3 h-3 mx-1" }} {{ slice $commit.Parent 0 8 }} {{ end }}

{{end}} {{ define "repoAfter" }} {{ template "repo/fragments/diff" (list .RepoInfo.FullName .Diff) }} {{end}}