{{ define "title" }}commits · {{ .RepoInfo.FullName }}{{ end }} {{ define "extrameta" }} {{ $title := printf "commits · %s" .RepoInfo.FullName }} {{ $url := printf "https://tangled.sh/%s/commits" .RepoInfo.FullName }} {{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo "Title" $title "Url" $url) }} {{ end }} {{ define "repoContent" }}

commits

{{ range $index, $commit := .Commits }} {{ $messageParts := splitN $commit.Message "\n\n" 2 }} {{ end }}
{{ range $index, $commit := .Commits }}
{{ $messageParts := splitN $commit.Message "\n\n" 2 }}
{{ index $messageParts 0 }} {{ if gt (len $messageParts) 1 }} {{ end }} {{ if index $.TagMap $commit.Hash.String }} {{ range $tag := index $.TagMap $commit.Hash.String }} {{ $tag }} {{ end }} {{ end }}
{{ if gt (len $messageParts) 1 }} {{ end }}
{{ i "folder-code" "w-4 h-4" }}
{{ slice $commit.Hash.String 0 8 }} {{ $didOrHandle := index $.EmailToDidOrHandle $commit.Author.Email }} {{ if $didOrHandle }}{{ $didOrHandle }}{{ else }}{{ $commit.Author.Name }}{{ end }}
{{ shortTimeFmt $commit.Author.When }}
{{ end }}
{{ end }} {{ define "repoAfter" }} {{ $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 }}