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.6.0/seo' of git.backyard.segmentfault.com:opensource/answer into feat/0.6.0/seo
aichy126dcd8108fa5c7
diff --cc internal/controller/template_controller.goindex 58ff3730,c986ad4e..89a00ff7--- a/internal/controller/template_controller.go+++ b/internal/controller/template_controller.go@@@ -6,9 -6,9 +6,11 @@@ import"html/template""net/http""regexp"+ "strings""time"++ "github.com/segmentfault/pacman/i18n"++"github.com/answerdev/answer/internal/base/handler"templaterender "github.com/answerdev/answer/internal/controller/template_render""github.com/answerdev/answer/internal/schema"@@@ -319,12 -308,7 +321,13 @@@ func (tc *TemplateController) html(ctxdata["siteinfo"] = siteInfodata["scriptPath"] = tc.scriptPathdata["cssPath"] = tc.cssPath+ data["language"] = i18n.LanguageChinese //handler.GetLang(ctx)+ data["keywords"] = siteInfo.Keywords+ if siteInfo.Description == "" {+ siteInfo.Description = siteInfo.General.Description+ }+ data["description"] = siteInfo.Description+ data["language"] = handler.GetLang(ctx)data["timezone"] = siteInfo.Interface.TimeZonectx.HTML(code, tpl, data)