diff --git a/model/setting.go b/model/setting.go index e1c92a21..96c95e13 100644 --- a/model/setting.go +++ b/model/setting.go @@ -66,6 +66,11 @@ func LoadSettings() { //conf.Favicon = favicon.Value conf.IndexHtml = strings.Replace(conf.RawIndexHtml, "https://store.heytapimage.com/cdo-portal/feedback/202110/30/d43c41c5d257c9bc36366e310374fb19.png", favicon.Value, 1) } + title, err := GetSettingByKey("title") + if err == nil { + //conf.CustomizeStyle = customizeStyle.Value + conf.IndexHtml = strings.Replace(conf.IndexHtml, "Loading...", title.Value, 1) + } customizeStyle, err := GetSettingByKey("customize style") if err == nil { //conf.CustomizeStyle = customizeStyle.Value