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.

update title

aichy1261a0dcf38aeec
diff --git a/internal/controller/template_controller.go b/internal/controller/template_controller.go
index d41efc80..96ec4fdc 100644
--- a/internal/controller/template_controller.go
+++ b/internal/controller/template_controller.go
@@ -328,7 +328,7 @@ func (tc *TemplateController) TagInfo(ctx *gin.Context) {
if siteInfo.General.PermaLink == schema.PermaLinkQuestionIDAndTitle {
UrlUseTitle = true
}
- siteInfo.Title = fmt.Sprintf("%s - %s", taginifo.DisplayName, siteInfo.General.Name)
+ siteInfo.Title = fmt.Sprintf("'%s' Questions - %s", taginifo.DisplayName, siteInfo.General.Name)
tc.html(ctx, http.StatusOK, "tag-detail.html", siteInfo, gin.H{
"tag": taginifo,
"questionList": questionList,
diff --git a/internal/router/template_router.go b/internal/router/template_router.go
index 7b5c61dd..17e5d251 100644
--- a/internal/router/template_router.go
+++ b/internal/router/template_router.go
@@ -29,6 +29,7 @@ func NewTemplateRouter(
// TemplateRouter template router
func (a *TemplateRouter) RegisterTemplateRouter(r *gin.RouterGroup) {
+ // r.GET("/sitemap.xml", a.siteInfoController.GetRobots)
r.GET("/robots.txt", a.siteInfoController.GetRobots)
r.GET("/", a.templateController.Index)