浏览代码

perf:1、优化自定义脚本功能
2、优化页面关键字

lifei6671 7 年之前
父节点
当前提交
f4f4e285c9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/BaseController.go

+ 1 - 1
controllers/BaseController.go

@@ -75,7 +75,7 @@ func (c *BaseController) Prepare() {
 	c.Data["HighlightStyle"] = beego.AppConfig.DefaultString("highlight_style", "github")
 	c.Data["HighlightStyle"] = beego.AppConfig.DefaultString("highlight_style", "github")
 
 
 	if b, err := ioutil.ReadFile(filepath.Join(beego.BConfig.WebConfig.ViewsPath, "widgets", "scripts.tpl")); err == nil {
 	if b, err := ioutil.ReadFile(filepath.Join(beego.BConfig.WebConfig.ViewsPath, "widgets", "scripts.tpl")); err == nil {
-		c.Data["Scripts0"] = template.HTML(string(b))
+		c.Data["Scripts"] = template.HTML(string(b))
 	}
 	}
 
 
 }
 }