Browse Source

fix #808

pull/822/head
Unknwon 10 years ago
parent
commit
677b1ec627
  1. 2
      routers/repo/view.go

2
routers/repo/view.go

@ -98,7 +98,7 @@ func Home(ctx *middleware.Context) {
readmeExist := base.IsMarkdownFile(blob.Name()) || base.IsReadmeFile(blob.Name())
ctx.Data["ReadmeExist"] = readmeExist
if readmeExist {
ctx.Data["FileContent"] = string(base.RenderMarkdown(buf, ""))
ctx.Data["FileContent"] = string(base.RenderMarkdown(buf, branchLink))
} else {
if err, content := base.ToUtf8WithErr(buf); err != nil {
if err != nil {

Loading…
Cancel
Save