From 77725e02cc964f980465b158bb86c4061e6bfcca Mon Sep 17 00:00:00 2001 From: tjp Date: Tue, 14 Nov 2023 21:53:09 -0700 Subject: support for nex protocol --- templates/repo_home.nex.txt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 templates/repo_home.nex.txt (limited to 'templates/repo_home.nex.txt') 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 }} -- cgit v1.2.3