summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Medvedev <anton@medv.io>2025-12-07 20:18:31 +0100
committerAnton Medvedev <anton@medv.io>2025-12-07 20:18:31 +0100
commit05bb1363975dcbdbcf709d8d825f76f45061b847 (patch)
tree9d91e5c4b04428d886bb263e9076ab70ed906b10
parent4693364d59fce5d61cff503eae988edb57f4c1e9 (diff)
Update template to use `Branch.DirName` for commit links
-rw-r--r--pkg/templates/commit.gohtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/templates/commit.gohtml b/pkg/templates/commit.gohtml
index 05da859..d5c6b37 100644
--- a/pkg/templates/commit.gohtml
+++ b/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 }}