diff options
author | tjp <tjp@ctrl-c.club> | 2023-11-14 21:53:09 -0700 |
---|---|---|
committer | tjp <tjp@ctrl-c.club> | 2023-11-14 21:53:09 -0700 |
commit | 77725e02cc964f980465b158bb86c4061e6bfcca (patch) | |
tree | e6e2ae135b08ff82d3244c0369607bc4046730c9 /templates/tree.nex.txt | |
parent | 8c6db5a6847aea8955579c4d709d3f7748745f3d (diff) |
Diffstat (limited to 'templates/tree.nex.txt')
-rw-r--r-- | templates/tree.nex.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/tree.nex.txt b/templates/tree.nex.txt new file mode 100644 index 0000000..676113b --- /dev/null +++ b/templates/tree.nex.txt @@ -0,0 +1,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 -}} |