all repos — elgit @ 899246690b667acde6525d4eb4a67e652036da8a

fork of legit: web frontend for git, written in go

templates/nav: Add closing tags to <li>
Runxi Yu me@runxiyu.org
Sat, 15 Feb 2025 18:31:05 +0800
commit

899246690b667acde6525d4eb4a67e652036da8a

parent

4207c35fb06ccd3c69104a525edfc131d597ca38

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M templates/nav.htmltemplates/nav.html
@@ -2,11 +2,11 @@ {{ define "nav" }}   <nav>
     <ul>
     {{ if .name }}
-    <li><a href="/{{ .name }}">summary</a>
-    <li><a href="/{{ .name }}/refs">refs</a>
+    <li><a href="/{{ .name }}">summary</a></li>
+    <li><a href="/{{ .name }}/refs">refs</a></li>
       {{ if .ref }}
-      <li><a href="/{{ .name }}/tree/{{ .ref }}/">tree</a>
-      <li><a href="/{{ .name }}/log/{{ .ref }}">log</a>
+      <li><a href="/{{ .name }}/tree/{{ .ref }}/">tree</a></li>
+      <li><a href="/{{ .name }}/log/{{ .ref }}">log</a></li>
       {{ end }}
     {{ end }}
     </ul>