diff options
Diffstat (limited to 'commit.go')
| -rw-r--r-- | commit.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -236,12 +236,12 @@ func generateCommitPage(commit git.Commit, params Params) error { err = templates.CommitTemplate.ExecuteTemplate(f, "layout.gohtml", templates.CommitParams{ LayoutParams: templates.LayoutParams{ - Title: fmt.Sprintf("%s %s %s@%s", commit.Subject, dot, params.Name, commit.ShortHash), - Name: params.Name, - Dark: params.Dark, - RootHref: rootHref, - CurrentRef: currentRef, - Selected: "commits", + Title: fmt.Sprintf("%s %s %s@%s", commit.Subject, dot, params.Name, commit.ShortHash), + Name: params.Name, + Dark: params.Dark, + RootHref: rootHref, + CurrentRefDir: currentRef.DirName(), + Selected: "commits", }, Commit: commit, DiffCSS: template.CSS(cssBuf.String()), |
