mirror of
https://github.com/gogs/gogs.git
synced 2025-12-20 15:20:01 +01:00
feature/org-mode: fix compile error
This commit is contained in:
2
gogs.go
2
gogs.go
@@ -16,7 +16,7 @@ import (
|
|||||||
"github.com/gogits/gogs/pkg/setting"
|
"github.com/gogits/gogs/pkg/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const APP_VER = "0.11.9.0407"
|
const APP_VER = "0.11.10.0517"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
setting.AppVer = APP_VER
|
setting.AppVer = APP_VER
|
||||||
|
|||||||
@@ -88,11 +88,11 @@ func renderDirectory(c *context.Context, treeLink string) {
|
|||||||
|
|
||||||
switch markup.Detect(readmeFile.Name()) {
|
switch markup.Detect(readmeFile.Name()) {
|
||||||
case markup.MARKDOWN:
|
case markup.MARKDOWN:
|
||||||
ctx.Data["IsMarkdown"] = true
|
c.Data["IsMarkdown"] = true
|
||||||
buf = markup.Markdown(buf, treeLink, ctx.Repo.Repository.ComposeMetas())
|
buf = markup.Markdown(buf, treeLink, c.Repo.Repository.ComposeMetas())
|
||||||
case markup.ORG_MODE:
|
case markup.ORG_MODE:
|
||||||
ctx.Data["IsMarkdown"] = true
|
c.Data["IsMarkdown"] = true
|
||||||
buf = markup.OrgMode(buf, treeLink, ctx.Repo.Repository.ComposeMetas())
|
buf = markup.OrgMode(buf, treeLink, c.Repo.Repository.ComposeMetas())
|
||||||
case markup.IPYTHON_NOTEBOOK:
|
case markup.IPYTHON_NOTEBOOK:
|
||||||
c.Data["IsIPythonNotebook"] = true
|
c.Data["IsIPythonNotebook"] = true
|
||||||
c.Data["RawFileLink"] = c.Repo.RepoLink + "/raw/" + path.Join(c.Repo.BranchName, c.Repo.TreePath, readmeFile.Name())
|
c.Data["RawFileLink"] = c.Repo.RepoLink + "/raw/" + path.Join(c.Repo.BranchName, c.Repo.TreePath, readmeFile.Name())
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
0.11.9.0407
|
0.11.10.0517
|
||||||
Reference in New Issue
Block a user