perf:1、优化自定义脚本功能

2、优化页面关键字
pull/372/head
lifei6671 2018-09-19 16:13:38 +08:00
parent da4d034ad3
commit e6b848d62b
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ func (c *BaseController) Prepare() {
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 {
c.Data["Scripts0"] = template.HTML(string(b))
c.Data["Scripts"] = template.HTML(string(b))
}
}