bidet

commit c4520ece0b4f0765894e05bd889c3a893b93a189

tree

parent:
b7e6dbf60bd696ebcd4165a0697e8cb21e2532b9

nmyk <nick@nmyk.io>

2026-02-23T17:54:08-05:00

adjust repo.tmpl, tree.tmpl layout

diff --git a/internal/handlers/templates/repo.tmpl b/internal/handlers/templates/repo.tmpl
index cde24d28c1826e0db5375695e596e98129d7eb40..9732dec9073ef19e47926dfb5853658f858baaad 100644
--- a/internal/handlers/templates/repo.tmpl
+++ b/internal/handlers/templates/repo.tmpl
@@ -3,8 +3,8 @@ {{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>
- | git clone https://{{.Hostname}}/{{.Repo}}.git</p>
+ | <a href="/{{.Repo}}/commits/{{.Ref}}">commits</a></p>
+<pre><code>git clone https://{{.Hostname}}/{{.Repo}}.git</code></pre>
 <ul>
 {{range .Entries}}
 <li>
@@ -16,6 +16,7 @@     {{- end -}}
 </li>
 {{end}}
 </ul>
+<br>
 {{- if ne .Readme "" -}}
 <hr>
 <h2>{{.ReadmeName}}</h2>
diff --git a/internal/handlers/templates/tree.tmpl b/internal/handlers/templates/tree.tmpl
index 7d4ab778540cdf5ea0d8758e2508b107b615e939..9c80c605eaa27d453d85e66db589f96674d1bce6 100644
--- a/internal/handlers/templates/tree.tmpl
+++ b/internal/handlers/templates/tree.tmpl
@@ -27,6 +27,7 @@     {{- end -}}
 </li>
 {{end}}
 </ul>
+<br>
 {{- if ne .Readme "" -}}
 <hr>
 <h2>{{.ReadmeName}}</h2>