A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
Merge branch 'feat/0.7.0/seo' into test
aichy12604f048b8294a
diff --cc internal/base/server/http.goindex 0a545118,7e0d3296..5a4351eb--- a/internal/base/server/http.go+++ b/internal/base/server/http.go@@@ -41,9 -29,19 +29,19 @@@ func NewHTTPServer(debug boolgin.SetMode(gin.ReleaseMode)}r := gin.New()- r.Use(brotli.Brotli(brotli.DefaultCompression))+ r.Use(brotli.Brotli(brotli.DefaultCompression), middleware.ExtractAndSetAcceptLanguage)r.GET("/healthz", func(ctx *gin.Context) { ctx.String(200, "OK") })+ dev := os.Getenv("DEVCODE")+ if dev != "" {+ r.SetFuncMap(funcMap)+ r.LoadHTMLGlob("../../ui/template/*")+ } else {+ html, _ := fs.Sub(ui.Template, "template")+ htmlTemplate := template.Must(template.New("").Funcs(funcMap).ParseFS(html, "*"))+ r.SetHTMLTemplate(htmlTemplate)+ }+viewRouter.Register(r)rootGroup := r.Group("")diff --cc internal/schema/siteinfo_schema.goindex d3f80647,c97ddc9f..4a113535--- a/internal/schema/siteinfo_schema.go+++ b/internal/schema/siteinfo_schema.go@@@ -162,19 -137,20 +162,20 @@@ type SiteInfoResp structLogin *SiteLoginResp `json:"login"`Theme *SiteThemeResp `json:"theme"`CustomCssHtml *SiteCustomCssHTMLResp `json:"custom_css_html"`-- SiteSeo *SiteSeoReq `json:"site_seo"`++ SiteSeo *SiteSeoReq `json:"site__seo"`}type TemplateSiteInfoResp struct {- General *SiteGeneralResp `json:"general"`- Interface *SiteInterfaceResp `json:"interface"`- Branding *SiteBrandingResp `json:"branding"`- SiteSeo *SiteSeoReq `json:"site_seo"`- Title string- Year string- Canonical string- JsonLD string- Keywords string- Description string+ General *SiteGeneralResp `json:"general"`+ Interface *SiteInterfaceResp `json:"interface"`+ Branding *SiteBrandingResp `json:"branding"`+ SiteSeo *SiteSeoReq `json:"site_seo"`+ CustomCssHtml *SiteCustomCssHTMLResp `json:"custom_css_html"`+ Title string+ Year string+ Canonical string+ JsonLD string+ Keywords string+ Description string}// UpdateSMTPConfigReq get smtp config request