diff options
author | Unknwon <joe2010xtmf@163.com> | 2015-01-02 12:56:08 +0800 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2015-01-02 12:56:08 +0800 |
commit | 677b1ec627fda8ca7c48b2423b371d012fd5c83c (patch) | |
tree | 8ce5980226064b189358a89ac12de7fe32126505 /routers | |
parent | 3ea1443885f274c9b3b952480c30ac5ec2195c5d (diff) | |
download | gitea-677b1ec627fda8ca7c48b2423b371d012fd5c83c.tar.gz gitea-677b1ec627fda8ca7c48b2423b371d012fd5c83c.zip |
fix #808
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/view.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/view.go b/routers/repo/view.go index 3722f04b44..606a0da637 100644 --- a/routers/repo/view.go +++ b/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 { |