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
aichy1264478df163e1e
diff --cc internal/controller/template_controller.goindex 4f0628ee,ea2f0fdd..35ef34a2--- a/internal/controller/template_controller.go+++ b/internal/controller/template_controller.go@@@ -72,10 -49,21 +72,22 @@@ func (tc *TemplateController) SiteInfo(// Index question listfunc (tc *TemplateController) Index(ctx *gin.Context) {+ req := &schema.QuestionSearch{}+ if handler.BindAndCheck(ctx, req) {+ return+ }+ data, count, err := tc.templateRenderController.Index(ctx, req)+ if err != nil {+ tc.Page404(ctx)+ return+ }+ctx.HTML(http.StatusOK, "question.html", gin.H{+ "siteinfo": tc.SiteInfo(ctx),"scriptPath": tc.scriptPath,"cssPath": tc.cssPath,+ "data": data,+ "page": templaterender.Paginator(req.Page, req.PageSize, count),})}