This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a commit to branch feat/1.3.6/template
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/feat/1.3.6/template by this
push:
new bf4f8a70 fix(template): add template HTML
bf4f8a70 is described below
commit bf4f8a70dce67dba111b523a7823a519daecb498
Author: LinkinStars <[email protected]>
AuthorDate: Wed Jul 17 11:15:36 2024 +0800
fix(template): add template HTML
---
ui/template/footer.html | 2 +-
ui/template/header.html | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ui/template/footer.html b/ui/template/footer.html
index 685a8c11..d69b164f 100644
--- a/ui/template/footer.html
+++ b/ui/template/footer.html
@@ -31,7 +31,7 @@
</footer>
</div>
<!--customize_footer-->
-{{if .FooterCode }}{{.FooterCode}}{{end}}
+{{if .FooterCode }}{{.FooterCode | templateHTML}}{{end}}
<!--customize_footer-->
</body>
</html>
diff --git a/ui/template/header.html b/ui/template/header.html
index 9b4aa93d..25741bf4 100644
--- a/ui/template/header.html
+++ b/ui/template/header.html
@@ -77,13 +77,13 @@
content="{{if $.siteinfo.Branding.Favicon
}}{{$.siteinfo.Branding.Favicon}}{{else}}{{$.baseURL}}/favicon.ico{{end}}"}
/>
<!--customize_head-->
- {{if .HeadCode }} {{.HeadCode}} {{end}}
+ {{if .HeadCode }} {{.HeadCode | templateHTML}} {{end}}
<!--customize_head-->
</head>
<body>
<!--customize_header-->
- {{if .HeaderCode }} {{.HeaderCode}} {{end}}
+ {{if .HeaderCode }} {{.HeaderCode | templateHTML}} {{end}}
<!--customize_header-->
<div id="root">