1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00
This commit is contained in:
Unknwon 2015-01-02 12:56:08 +08:00
parent 3ea1443885
commit 677b1ec627

View file

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