{{ define "title" }} commit {{ .Diff.Commit.This }} · {{ .RepoInfo.FullName }} {{ end }}
{{ define "extrameta" }}
{{ $title := printf "commit %s · %s" .Diff.Commit.This .RepoInfo.FullName }}
{{ $url := printf "https://tangled.org/%s/commit/%s" .RepoInfo.FullName .Diff.Commit.This }}
{{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo "Title" $title "Url" $url) }}
{{ end }}
{{ define "repoContent" }}
{{ $repo := .RepoInfo.FullName }}
{{ $commit := .Diff.Commit }}
{{ index $messageParts 0 }} {{ nl2br (index $messageParts 1) }}
{{ $didOrHandle := index $.EmailToDidOrHandle $commit.Author.Email }}
{{ if $didOrHandle }}
{{ $didOrHandle }}
{{ else }}
{{ $commit.Author.Name }}
{{ end }}
{{ template "repo/fragments/time" $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 }}