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
commit 912bc7a8f56e1861abb7a7bab92d36012aa6b622 Author: LinkinStars <[email protected]> AuthorDate: Tue Jul 9 10:24:51 2024 +0800 feat(template): add custom html in template #895 --- ui/template/footer.html | 3 +++ ui/template/header.html | 6 ++++++ 2 files changed, 9 insertions(+) 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">
