Commit 05bb136

Anton Medvedev <anton@medv.io>
2025-12-07 19:18:31
Update template to use `Branch.DirName` for commit links
1 parent 4693364
Changed files (1)
pkg
templates
pkg/templates/commit.gohtml
@@ -247,7 +247,7 @@
         <div class="commit-subinfo">
             <div class="commit-branch">
                 {{ if .Commit.Branch }}
-                    <a href="../commits/{{ .Commit.Branch }}/index.html" class="badge">{{ .Commit.Branch }}</a>
+                    <a href="../commits/{{ .Commit.Branch.DirName }}/index.html" class="badge">{{ .Commit.Branch }}</a>
                 {{ end }}
             </div>
             {{ if .Commit.Parents }}