diff --git a/controllers/BaseController.go b/controllers/BaseController.go index 8c5edd10..3d026b87 100644 --- a/controllers/BaseController.go +++ b/controllers/BaseController.go @@ -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)) } }