mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-24 18:56:11 +01:00
fix #808
This commit is contained in:
parent
3ea1443885
commit
677b1ec627
|
@ -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…
Reference in a new issue