summaryrefslogtreecommitdiff
path: root/templates/repo_home.nex.txt
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2023-11-14 21:53:09 -0700
committertjp <tjp@ctrl-c.club>2023-11-14 21:53:09 -0700
commit77725e02cc964f980465b158bb86c4061e6bfcca (patch)
treee6e2ae135b08ff82d3244c0369607bc4046730c9 /templates/repo_home.nex.txt
parent8c6db5a6847aea8955579c4d709d3f7748745f3d (diff)
support for nex protocolHEADv0.9.5main
Diffstat (limited to 'templates/repo_home.nex.txt')
-rw-r--r--templates/repo_home.nex.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/repo_home.nex.txt b/templates/repo_home.nex.txt
new file mode 100644
index 0000000..86cca62
--- /dev/null
+++ b/templates/repo_home.nex.txt
@@ -0,0 +1,28 @@
+{{.Repo.Name}}
+{{ range .Repo.NameBytes }}={{end}}
+
+{{.Repo.Description}}
+
+=> ./branches/ ⌥ Branches
+=> ./tags/ 🏷️Tags
+=> ./refs/HEAD/tree/ 📄 Files
+
+Latest Commits
+--------------
+
+{{ with .Repo.Commits .Ctx "HEAD" 5 -}}
+{{ range . -}}
+=> ./refs/{{.Hash}}/ {{.ShortMessage}}
+{{ end -}}
+{{ if len . | eq 0 -}}
+(no commits to show)
+{{ end -}}
+{{ end }}
+
+{{ with .Repo.Readme .Ctx "HEAD" -}}
+{{ if len .RawContents | ne 0 -}}
+== {{.Filename}} ==
+
+{{.RawContents}}
+{{ end -}}
+{{ end }}