mirror of
https://github.com/go-gitea/gitea
synced 2024-08-19 05:40:43 +02:00
Working on #211
This commit is contained in:
parent
6696610aea
commit
9085dfa426
4
bee.json
4
bee.json
@ -12,8 +12,8 @@
|
|||||||
"models": "",
|
"models": "",
|
||||||
"others": [
|
"others": [
|
||||||
"modules",
|
"modules",
|
||||||
"/project/works/open/src/github.com/gogits/logs",
|
"$GOPATH/src/github.com/gogits/logs",
|
||||||
"/project/works/open/src/github.com/gogits/git"
|
"$GOPATH/src/github.com/gogits/git"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"cmd_args": [
|
"cmd_args": [
|
||||||
|
@ -252,7 +252,10 @@ func Single(ctx *middleware.Context, params martini.Params) {
|
|||||||
if isTextFile {
|
if isTextFile {
|
||||||
d, _ := ioutil.ReadAll(dataRc)
|
d, _ := ioutil.ReadAll(dataRc)
|
||||||
buf = append(buf, d...)
|
buf = append(buf, d...)
|
||||||
ctx.Data["FileContent"] = string(base.RenderMarkdown(buf, branchLink))
|
if base.IsMarkdownFile(readmeFile.Name()) {
|
||||||
|
buf = base.RenderMarkdown(buf, branchLink)
|
||||||
|
}
|
||||||
|
ctx.Data["FileContent"] = string(buf)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user