summaryrefslogtreecommitdiff
path: root/templates/repo_home.nex.txt
diff options
context:
space:
mode:
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 }}