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.

feat(template): add custom html in template #895

LinkinStars912bc7a8f56e
diff --git a/ui/template/footer.html b/ui/template/footer.html
index 0e0e40f1..685a8c11 100644
--- a/ui/template/footer.html
+++ b/ui/template/footer.html
@@ -30,6 +30,9 @@
</div>
</footer>
</div>
+<!--customize_footer-->
+{{if .FooterCode }}{{.FooterCode}}{{end}}
+<!--customize_footer-->
</body>
</html>
{{end}}
diff --git a/ui/template/header.html b/ui/template/header.html
index b7f4aaf8..9b4aa93d 100644
--- a/ui/template/header.html
+++ b/ui/template/header.html
@@ -76,9 +76,15 @@
name="twitter:image"
content="{{if $.siteinfo.Branding.Favicon }}{{$.siteinfo.Branding.Favicon}}{{else}}{{$.baseURL}}/favicon.ico{{end}}"}
/>
+ <!--customize_head-->
+ {{if .HeadCode }} {{.HeadCode}} {{end}}
+ <!--customize_head-->
</head>
<body>
+ <!--customize_header-->
+ {{if .HeaderCode }} {{.HeaderCode}} {{end}}
+ <!--customize_header-->
<div id="root">
<div id="spin-mask">