{{ define "title"}}{{ range .BreadCrumbs }}{{ pathUnescape (index . 0)}}/{{ end }} at {{ .Ref }} · {{ .RepoInfo.FullName }}{{ end }} {{ define "extrameta" }} {{ $path := "" }} {{ range .BreadCrumbs }} {{ $path = printf "%s/%s" $path (index . 0) }} {{ end }} {{ template "repo/fragments/meta" . }} {{ $title := printf "%s at %s · %s" $path .Ref .RepoInfo.FullName }} {{ $url := printf "https://tangled.sh/%s/tree/%s%s" .RepoInfo.FullName .Ref $path }} {{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo "Title" $title "Url" $url) }} {{ end }} {{define "repoContent"}}
{{ $containerstyle := "py-1" }} {{ $linkstyle := "no-underline hover:underline" }}
{{ $stats := .TreeStats }} at {{ $.Ref }} {{ if eq $stats.NumFolders 1 }} {{ $stats.NumFolders }} folder {{ else if gt $stats.NumFolders 1 }} {{ $stats.NumFolders }} folders {{ end }} {{ if eq $stats.NumFiles 1 }} {{ $stats.NumFiles }} file {{ else if gt $stats.NumFiles 1 }} {{ $stats.NumFiles }} files {{ end }}
{{ range .Files }} {{ if not .IsFile }}
{{ i "folder" "size-4 fill-current" }}{{ .Name }}
{{ if .LastCommit}} {{ end }}
{{ end }} {{ end }} {{ range .Files }} {{ if .IsFile }}
{{ i "file" "size-4" }}{{ .Name }}
{{ if .LastCommit}} {{ end }}
{{ end }} {{ end }}
{{end}}