feat(theme): 自定义主题

This commit is contained in:
naiba
2020-12-19 10:57:10 +08:00
parent a9b1ab9e95
commit 9dbbfac551
9 changed files with 48 additions and 5 deletions

View File

@@ -29,7 +29,8 @@ func (cp *commonPage) home(c *gin.Context) {
dao.ServerLock.RLock()
defer dao.ServerLock.RUnlock()
data := gin.H{
"Servers": dao.ServerList,
"Servers": dao.ServerList,
"CustomCSS": dao.Conf.Site.CustomCSS,
}
u, ok := c.Get(model.CtxKeyAuthorizedUser)
if ok {