don't forget template_init.go
This commit is contained in:
parent
67ccca8b4e
commit
9e4336761f
|
@ -108,9 +108,10 @@ func tmplInitUsers() (*User, *User, *User) {
|
||||||
|
|
||||||
func tmplInitHeaders(u, u2, u3 *User) (*Header, *Header, *Header) {
|
func tmplInitHeaders(u, u2, u3 *User) (*Header, *Header, *Header) {
|
||||||
header := &Header{
|
header := &Header{
|
||||||
Site: Site,
|
Site: Site,
|
||||||
Settings: SettingBox.Load().(SettingMap),
|
Settings: SettingBox.Load().(SettingMap),
|
||||||
Themes: Themes,
|
//Themes: Themes,
|
||||||
|
ThemesSlice: ThemesSlice,
|
||||||
Theme: Themes[DefaultThemeBox.Load().(string)],
|
Theme: Themes[DefaultThemeBox.Load().(string)],
|
||||||
CurrentUser: u,
|
CurrentUser: u,
|
||||||
NoticeList: []string{"test"},
|
NoticeList: []string{"test"},
|
||||||
|
|
Loading…
Reference in New Issue