parent:
c88633ca734e83e2c7ebadcc342db9166f8c14e6
nmyk <nick@nmyk.io>
2026-02-20T15:46:49-05:00
improve navigation a bit
diff --git a/internal/handlers/templates/commit.tmpl b/internal/handlers/templates/commit.tmpl
index 47e7fb38409bc21e2e53e48e70beb6eaa85816eb..4ab8e9972dc1763f14bd153e10ae8f81473c6eb3 100644
--- a/internal/handlers/templates/commit.tmpl
+++ b/internal/handlers/templates/commit.tmpl
@@ -1,7 +1,7 @@
{{define "title"}}{{.Repo}} @ {{.Hash}}{{end}}
{{define "content"}}
<h1><a href="/{{.Repo}}">{{.Repo}}</a></h1>
-<p><a href="/">index</a> | <a href="/{{.Repo}}/refs">refs</a></p>
+<p><a href="/{{.Repo}}/refs">refs</a></p>
<h4>commit {{.Hash}} | <a href="/{{.Repo}}/tree/{{.Hash}}">tree</a></h4>
<p>parent{{ if gt (len .Parents) 1 }}s{{end}}: {{ range .Parents }}<br><a href="/{{$.Repo}}/commit/{{.}}">{{.}}</a> {{end}}</p>
<p>{{.Author}}</p>
diff --git a/internal/handlers/templates/commits.tmpl b/internal/handlers/templates/commits.tmpl
index fbe0073965e503944b486492176ffa8cdd0a1b4e..a3d3a4a1d1df8ee9a7da64d74e5d15e604a864cd 100644
--- a/internal/handlers/templates/commits.tmpl
+++ b/internal/handlers/templates/commits.tmpl
@@ -2,6 +2,7 @@ {{define "title"}}{{.Repo}} @ {{.Ref}}{{end}}
{{define "content"}}
<h1><a href="/{{.Repo}}/tree/{{.Ref}}">{{.Repo}}</a></h1>
<p>@ {{.Ref}}</p>
+<p><a href="/{{.Repo}}/refs">refs</a></p>
<h2>commits</h2>
{{range .Commits}}
<p><a href="/{{$.Repo}}/commit/{{.Hash}}">{{.Hash}}</a></p>