{{define "content" -}}

~{{.Repo.OwnerName}}/{{.Repo.Name}} {{template "visibilityBadge" .Repo.Visibility}}

{{if .Repo.Description}}

{{.Repo.Description}}

{{end}} {{if .Views}} {{template "viewtabs" (dict "Repo" .Repo "Views" .Views "Current" "" "Ref" .DefaultBranch)}} {{end}}

Clone

With a meta.sr.ht personal access token (Basic auth):

export DOLT_REMOTE_PASSWORD=<your meta access token>
dolt clone --user {{.Repo.OwnerName}} {{.CloneURL}}

Or, associate a dolt key once and clone with no credentials (like a git SSH key):

dolt creds new
dolt login --auth-endpoint {{doltHost .SelfOrigin}} --login-url {{.SelfOrigin}}/settings/keys
dolt clone {{.CloneURL}}

{{icon "code-branch"}} Branches

{{if .Branches}} {{else}}

No branches.

{{end}}

{{icon "clock"}} Recent commits

{{if .BrowseError}}
Could not read history: {{.BrowseError}}
{{end}} {{if .Commits}} {{range .Commits}} {{end}}
{{.Hash | shorthash}} {{.Message}} {{.Author}} {{.Date | reltime}}
Full log → {{else}}

No commits.

{{end}}
{{- end}}