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.

add icon

aichy126fc5b65ee0e6a
diff --git a/internal/controller/template_controller.go b/internal/controller/template_controller.go
index 801312cf..e5267971 100644
--- a/internal/controller/template_controller.go
+++ b/internal/controller/template_controller.go
@@ -426,7 +426,6 @@ func (tc *TemplateController) html(ctx *gin.Context, code int, tpl string, siteI
if !ok {
data["path"] = ""
}
-
ctx.HTML(code, tpl, data)
}
diff --git a/ui/template/header.html b/ui/template/header.html
index 0780ba29..ebb59788 100644
--- a/ui/template/header.html
+++ b/ui/template/header.html
@@ -12,8 +12,14 @@
<link rel="manifest" href="/manifest.json"/>
<link href="{{.cssPath}}" rel="stylesheet" />
<link href="/custom.css" rel="stylesheet">
- <script defer="defer" src="{{.scriptPath}}"></script>
+ <link rel="icon" type="image/png" href="{{.siteinfo.Branding.Favicon}}" data-rh="true">
+ <link rel="icon" type="image/png" sizes="192x192" href="{{.siteinfo.Branding.SquareIcon}}" data-rh="true">
+ <!-- <script defer="defer" src="{{.scriptPath}}"></script> -->
{{if $.siteinfo.JsonLD }}{{ .siteinfo.JsonLD | templateHTML}}{{end}}
+
+
+
+
</head>
<body>