parent:
f827488cea1a4accd20d81647d15cd5692a71752
nmyk <nick@nmyk.io>
2026-02-16T14:39:31-05:00
make navigation a little nicer
diff --git a/templates/repo.tmpl b/templates/repo.tmpl
index 1768d39091f2ff5a2f9830dab58e806846c10df9..f9c52d3da9d160d0639b71bd4dd71640632816bd 100644
--- a/templates/repo.tmpl
+++ b/templates/repo.tmpl
@@ -2,7 +2,7 @@ {{define "title"}}{{.Repo}}/{{.Base}}{{end}}
{{define "content"}}
<h1>{{.Repo}}</h1>
<p>@ {{.Ref}}</p>
-<p><a href="/"><-- back</a> | <a href="/{{.Repo}}/refs">refs</a></p>
+<p><a href="/">index</a> | <a href="/{{.Repo}}/refs">refs</a></p>
<ul>
{{range .Entries}}
<li>
diff --git a/templates/tree.tmpl b/templates/tree.tmpl
index 5fe3a1e58c1e37b641596e5505c590cca74cc3c3..1e1740a3d634c3dbf30d1b17bd3dbfc309a0cad3 100644
--- a/templates/tree.tmpl
+++ b/templates/tree.tmpl
@@ -13,6 +13,9 @@ <a href="/{{$c.URL}}">{{$c.Name}}</a>
{{end}}
{{end}}</h1>
<p>@ {{.Ref}}</p>
+{{if eq .Base ""}}
+<p><a href="/">index</a> | <a href="/{{.Repo}}/refs">refs</a></p>
+{{end}}
<ul>
{{range .Entries}}
<li>