{{ 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" }}
{{ $verified := false }} {{ $verified = index $.VerifiedCommits $commit.Hash.String }} {{ $hashStyle := "text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-900" }} {{ if $verified }} {{ $hashStyle = "bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200 px-2 rounded" }} {{ end }} {{ slice $commit.Hash.String 0 8 }} {{ if $verified }} {{ i "shield-check" "w-3 h-3" }} {{ end }} {{ $didOrHandle := index $.EmailToDidOrHandle $commit.Author.Email }} {{ if $didOrHandle }}{{ $didOrHandle }}{{ else }}{{ $commit.Author.Name }}{{ end }}
{{ shortTimeFmt $commit.Committer.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 }}