summaryrefslogtreecommitdiff
path: root/templates/branch_list.gmi
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-09-16 20:43:19 -0600
committertjpcc <tjp@ctrl-c.club>2023-09-16 20:43:19 -0600
commit90fa2795ad177b9add2fe46382576993e96ece4b (patch)
tree0e2847f8694fa66a914680329c4515101b5a45ab /templates/branch_list.gmi
Initial commit
Gemini repository browsing
Diffstat (limited to 'templates/branch_list.gmi')
-rw-r--r--templates/branch_list.gmi7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/branch_list.gmi b/templates/branch_list.gmi
new file mode 100644
index 0000000..2a2e99e
--- /dev/null
+++ b/templates/branch_list.gmi
@@ -0,0 +1,7 @@
+# {{.Repo.Name}} Branches ⌥
+
+{{ range .Repo.Refs .Ctx -}}
+{{ if .IsBranch -}}
+=> ./refs/{{.Hash}}/ {{.ShortName}}
+{{ end -}}
+{{ end -}}