{{define "public_meta_product"}} {{end}} {{define "public_favicon_link"}} {{template "public_meta_product" .}} {{end}} {{define "public_header"}} {{template "public_favicon_link" .}} {{.Title}} {{if .Keywords}}{{end}} {{if .Description}}{{end}} {{template "custom-head-embed" .}} {{template "public/privacy_mask_css" .}} {{template "public_header_frag" .}} {{end}} {{define "public_header_frag"}} {{template "public_logout_confirm_bootstrap_frag" .}} {{template "public_nav_dayrange_script" .}} {{end}} {{define "public_nav_dayrange_script"}} {{if and .User .ShowDayRangeNav}} {{end}} {{end}} {{define "custom-head-embed"}} {{if .CustomHeadHTML}}{{.CustomHeadHTML}} {{end}} {{end}} {{define "custom-footer-embed"}} {{if and .CustomFooterHTML .ShowCustomFooterEmbed}}{{.CustomFooterHTML}} {{end}} {{end}} {{define "public_footer"}} {{template "public_footer_frag" .}} {{template "public/privacy_mask_js" .}} {{end}} {{define "public_footer_frag"}} {{/* 对齐 SupChat:页脚碎片内注入,登录/注册等只用 footer_frag 的页面也能生效 */}} {{template "custom-footer-embed" .}} {{template "public/cookie_consent_bar" .}} {{end}} {{define "public/cookie_consent_bar"}} {{if .ShowCookieConsent}} {{end}} {{end}}