diff options
author | tjp <tjp@ctrl-c.club> | 2023-11-14 21:53:09 -0700 |
---|---|---|
committer | tjp <tjp@ctrl-c.club> | 2023-11-14 21:53:09 -0700 |
commit | 77725e02cc964f980465b158bb86c4061e6bfcca (patch) | |
tree | e6e2ae135b08ff82d3244c0369607bc4046730c9 /templates/repo_home.nex.txt | |
parent | 8c6db5a6847aea8955579c4d709d3f7748745f3d (diff) |
Diffstat (limited to 'templates/repo_home.nex.txt')
-rw-r--r-- | templates/repo_home.nex.txt | 28 |
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 }} |