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 html canonical

aichy126782eb7a452cd
diff --git a/docs/docs.go b/docs/docs.go
index 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.json
index 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.yaml
index fef405df..aed8b3ea 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -1589,10 +1589,6 @@ definitions:
description: bio
maxLength: 4096
type: string
- bio_html:
- description: bio
- maxLength: 4096
- type: string
display_name:
description: display_name
maxLength: 30
diff --git a/internal/controller/template_controller.go b/internal/controller/template_controller.go
index 786b81ae..894b4930 100644
--- a/internal/controller/template_controller.go
+++ b/internal/controller/template_controller.go
@@ -25,7 +25,6 @@ import (
type TemplateController struct {
scriptPath string
cssPath string
- Version string
templateRenderController *templaterender.TemplateRenderController
siteInfoService *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, siteI
data["HeadCode"] = siteInfo.CustomCssHtml.CustomHead
data["HeaderCode"] = siteInfo.CustomCssHtml.CustomHeader
data["FooterCode"] = siteInfo.CustomCssHtml.CustomFooter
- data["Version"] = tc.Version
+ data["Version"] = constant.Version
_, ok := data["path"]
if !ok {
data["path"] = ""