diff options
| author | Anton Medvedev <anton@medv.io> | 2025-12-07 20:18:31 +0100 |
|---|---|---|
| committer | Anton Medvedev <anton@medv.io> | 2025-12-07 20:18:31 +0100 |
| commit | 05bb1363975dcbdbcf709d8d825f76f45061b847 (patch) | |
| tree | 9d91e5c4b04428d886bb263e9076ab70ed906b10 | |
| parent | 4693364d59fce5d61cff503eae988edb57f4c1e9 (diff) | |
Update template to use `Branch.DirName` for commit links
| -rw-r--r-- | pkg/templates/commit.gohtml | 2 |
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 }} |
