summaryrefslogtreecommitdiff
path: root/templates/tree.gmi
blob: b686c2c42a1f75e640c476ce3471dfd39067fd6c (plain)
1
2
3
4
5
6
7
8
{{ with .Repo.Commit .Ctx .Params.ref -}}
# {{slice .Hash 0 8}}:{{ if ne $.Params.path "" }}{{$.Params.path}}{{ else }}/{{ end }}

{{ end -}}
=> ../ {{ if ne .Params.path "" }}../{{ else }}Commit{{ end }}
{{ range .Repo.Tree .Ctx .Params.ref .Params.path -}}
=> ./{{.Path}}{{if eq .Type "tree"}}/{{end}} {{if eq .Type "blob"}}📄{{else if eq .Type "tree"}}📂{{end}} {{.Path}}
{{ end -}}