Skip to content

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(seo): merge seo

LinkinStar033cbc50a50d
diff --cc internal/router/template_router.go
index af108081,8b8c652e..f7c25dd8
--- a/internal/router/template_router.go
+++ b/internal/router/template_router.go
@@@ -28,6 -28,9 +28,8 @@@ func NewTemplateRouter
// TemplateRouter template router
func (a *TemplateRouter) RegisterTemplateRouter(r *gin.RouterGroup) {
-
+ r.GET("/sitemap.xml", a.templateController.Sitemap)
+ r.GET("/sitemap/:page", a.templateController.SitemapPage)
r.GET("/robots.txt", a.siteInfoController.GetRobots)
diff --cc internal/service/export/email_service.go
index 42058543,42058543..e89dfb19
--- a/internal/service/export/email_service.go
+++ b/internal/service/export/email_service.go
@@@ -122,7 -122,7 +122,7 @@@ func (es *EmailService) Send(ctx contex
func (es *EmailService) VerifyUrlExpired(ctx context.Context, code string) (content string) {
content, err := es.emailRepo.VerifyCode(ctx, code)
if err != nil {
-- log.Error(err)
++ log.Warn(err)
}
return content
}