1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-22 08:42:32 -05:00
This commit is contained in:
slene 2014-03-20 17:25:04 +08:00
parent a10e126803
commit 8ef71343df

View file

@ -137,10 +137,9 @@ func Single(ctx *middleware.Context, params martini.Params) {
return
} else {
// current repo branch link
urlPrefix := "http://" + base.Domain + branchLink
ctx.Data["FileName"] = readmeFile.Name
ctx.Data["FileContent"] = string(base.RenderMarkdown(blob.Contents(), urlPrefix))
ctx.Data["FileContent"] = string(base.RenderMarkdown(blob.Contents(), branchLink))
}
}
}