parent:
ce8f3fef2e7542007a4b0ec50ed4f8b49c6f0d5f
nmyk <nick@nmyk.io>
2026-02-23T17:44:39-05:00
add git clone command to repo.tmpl
diff --git a/internal/handlers/templates/repo.tmpl b/internal/handlers/templates/repo.tmpl
index 3e6e7478ae38730f4287aee0e937e7165b357db4..cde24d28c1826e0db5375695e596e98129d7eb40 100644
--- a/internal/handlers/templates/repo.tmpl
+++ b/internal/handlers/templates/repo.tmpl
@@ -2,7 +2,9 @@ {{define "title"}}{{.Repo}}/{{.Path}}{{end}}
{{define "content"}}
<h1><a href="/">{{.Hostname}}</a> / {{.Repo}}</h1>
<p>@ {{.Ref}}</p>
-<p><a href="/{{.Repo}}/refs">refs</a> | <a href="/{{.Repo}}/commits/{{.Ref}}">commits</a></p>
+<p><a href="/{{.Repo}}/refs">refs</a>
+ | <a href="/{{.Repo}}/commits/{{.Ref}}">commits</a>
+ | git clone https://{{.Hostname}}/{{.Repo}}.git</p>
<ul>
{{range .Entries}}
<li>