diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-09-17 14:00:03 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-09-17 14:00:03 -0600 |
commit | ce0def95f3924a10b0faceb72aa5df18bf813fb1 (patch) | |
tree | 2f0300d84738343ea2fb9f13db1af1e649b41917 /templates/repo_home.gophermap | |
parent | ebea6fe755fb052b79cbe05b6280611337e1e5f6 (diff) |
GOPHER
Diffstat (limited to 'templates/repo_home.gophermap')
-rw-r--r-- | templates/repo_home.gophermap | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/repo_home.gophermap b/templates/repo_home.gophermap new file mode 100644 index 0000000..17f06f7 --- /dev/null +++ b/templates/repo_home.gophermap @@ -0,0 +1,20 @@ +i{{.Repo.Name}} {{.Selector}} {{.Host}} {{.Port}}
+i{{ range .Repo.NameBytes }}-{{ end }} {{.Selector}} {{.Host}} {{.Port}}
+i {{.Selector}} {{.Host}} {{.Port}}
+i{{.Repo.Description}} {{.Selector}} {{.Host}} {{.Port}}
+i {{.Selector}} {{.Host}} {{.Port}}
+1⌥ Branches {{.Selector}}/branches {{.Host}} {{.Port}}
+1🏷️ Tags {{.Selector}}/tags {{.Host}} {{.Port}}
+1📄 Files {{.Selector}}/refs/HEAD/tree {{.Host}} {{.Port}}
+i {{.Selector}} {{.Host}} {{.Port}}
+iLatest Commits: {{.Selector}} {{.Host}} {{.Port}}
+i {{.Selector}} {{.Host}} {{.Port}}
+{{ with .Repo.Commits .Ctx "HEAD" 5 -}} +{{ range . -}} +1{{.ShortMessage}} {{$.Selector}}/refs/{{.Hash}} {{$.Host}} {{$.Port}}
+{{ end -}} +{{ if len . | eq 0 -}} +i(no commits to show) {{$.Selector}} {{$.Host}} {{$.Port}}
+{{ end -}} +{{ end -}} +.
|