{{ define "title" }}
{{ $messageParts := splitN .Diff.Commit.Message "\n\n" 2 }}
{{ index $messageParts 0 }} · {{ .RepoInfo.FullName }}@{{ slice .Diff.Commit.This 0 7 }}
{{ end }}
{{ define "extrameta" }}
{{ $messageParts := splitN .Diff.Commit.Message "\n\n" 2 }}
{{ $title := printf "%s · %s@%s" (index $messageParts 0) .RepoInfo.FullName (slice .Diff.Commit.This 0 7) }}
{{ $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) }}
{{ template "attribution" . }}
{{ template "repo/fragments/time" $commit.Committer.When }}
{{ slice $commit.This 0 8 }}
{{ if $commit.Parent }}
{{ i "arrow-left" "w-3 h-3 mx-1" }}
{{ slice $commit.Parent 0 8 }}
{{ end }}