mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-12-17 18:31:21 +08:00
优化首页显示效果
This commit is contained in:
@@ -23,6 +23,11 @@ type BaseController struct {
|
||||
func (c *BaseController) Prepare() {
|
||||
c.Data["SiteName"] = "MinDoc"
|
||||
c.Data["Member"] = models.Member{}
|
||||
controller,action := c.GetControllerAndAction()
|
||||
|
||||
c.Data["ActionName"] = action
|
||||
c.Data["ControllerName"] = controller
|
||||
|
||||
c.EnableAnonymous = false
|
||||
c.EnableDocumentHistory = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user