{{ define "title" }}{{ .RepoInfo.FullName }} at {{ .Ref }}{{ end }} {{ define "repoContent" }}
{{ block "branchSelector" . }} {{ end }}
{{ block "fileTree" . }} {{ end }} {{ block "commitLog" . }} {{ end }}
{{ end }} {{ define "branchSelector" }}
{{ .TotalCommits }} {{ if eq .TotalCommits 1 }}commit{{ else }}commits{{ end }}
{{ end }} {{ define "fileTree" }}
{{ $containerstyle := "py-1" }} {{ $linkstyle := "no-underline hover:underline" }} {{ range .Files }} {{ if not .IsFile }}
{{ .Name }}
{{ end }} {{ end }} {{ range .Files }} {{ if .IsFile }}
{{ .Name }}
{{ end }} {{ end }}
{{ end }} {{ define "commitLog" }}
{{ range .Commits }}
{{ $messageParts := splitN .Message "\n\n" 2 }}
{{ index $messageParts 0 }} {{ if gt (len $messageParts) 1 }} {{ end }}
{{ if gt (len $messageParts) 1 }} {{ end }}
{{ slice .Hash.String 0 8 }} {{ .Author.Name }}
{{ timeFmt .Author.When }}
{{ $tagsForCommit := index $.TagMap .Hash.String }} {{ range $tagsForCommit }} {{ . }} {{ end }}
{{ end }}
{{ end }} {{ define "repoAfter" }} {{- if .Readme }}
{{- .Readme -}}
{{- end -}}
clone
 git clone https://tangled.sh/{{ .RepoInfo.OwnerWithAt }}/{{ .RepoInfo.Name }} 
{{ end }}