diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-09-16 20:43:19 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-09-16 20:43:19 -0600 |
commit | 90fa2795ad177b9add2fe46382576993e96ece4b (patch) | |
tree | 0e2847f8694fa66a914680329c4515101b5a45ab /templates/tree.gmi |
Initial commit
Gemini repository browsing
Diffstat (limited to 'templates/tree.gmi')
-rw-r--r-- | templates/tree.gmi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/tree.gmi b/templates/tree.gmi new file mode 100644 index 0000000..35d0d02 --- /dev/null +++ b/templates/tree.gmi @@ -0,0 +1,6 @@ +# {{.Params.ref}}:{{ if ne .Params.path "" }}{{.Params.path}}{{ else }}/{{ 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 -}} |