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 html canonical
aichy126782eb7a452cd
diff --git a/docs/docs.go b/docs/docs.goindex 24693e47..75d0a49d 100644--- a/docs/docs.go+++ b/docs/docs.go@@ -7510,11 +7510,6 @@ const docTemplate = `{"type": "string","maxLength": 4096},- "bio_html": {- "description": "bio",- "type": "string",- "maxLength": 4096- },"display_name": {"description": "display_name","type": "string",diff --git a/docs/swagger.json b/docs/swagger.jsonindex fb2f297b..899de45a 100644--- a/docs/swagger.json+++ b/docs/swagger.json@@ -7498,11 +7498,6 @@"type": "string","maxLength": 4096},- "bio_html": {- "description": "bio",- "type": "string",- "maxLength": 4096- },"display_name": {"description": "display_name","type": "string",diff --git a/docs/swagger.yaml b/docs/swagger.yamlindex fef405df..aed8b3ea 100644--- a/docs/swagger.yaml+++ b/docs/swagger.yaml@@ -1589,10 +1589,6 @@ definitions:description: biomaxLength: 4096type: string- bio_html:- description: bio- maxLength: 4096- type: stringdisplay_name:description: display_namemaxLength: 30diff --git a/internal/controller/template_controller.go b/internal/controller/template_controller.goindex 786b81ae..894b4930 100644--- a/internal/controller/template_controller.go+++ b/internal/controller/template_controller.go@@ -25,7 +25,6 @@ import (type TemplateController struct {scriptPath stringcssPath string- Version stringtemplateRenderController *templaterender.TemplateRenderControllersiteInfoService *siteinfo_common.SiteInfoCommonService}@@ -39,7 +38,6 @@ func NewTemplateController(return &TemplateController{scriptPath: script,cssPath: css,- Version: constant.Version,templateRenderController: templateRenderController,siteInfoService: siteInfoService,}@@ -448,7 +446,7 @@ func (tc *TemplateController) html(ctx *gin.Context, code int, tpl string, siteIdata["HeadCode"] = siteInfo.CustomCssHtml.CustomHeaddata["HeaderCode"] = siteInfo.CustomCssHtml.CustomHeaderdata["FooterCode"] = siteInfo.CustomCssHtml.CustomFooter- data["Version"] = tc.Version+ data["Version"] = constant.Version_, ok := data["path"]if !ok {data["path"] = ""