Files
web_hgtv_h5/app/templates/base/seoCommon.html
T
谢宇宁andClaude Opus 5.5 3639d2184a Initial commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 14:47:17 +07:00

76 lines
3.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{define "seoCommon"}} {{/* 全站 SEO 公共头:验证码 / OG / 移动适配 / 性能提示 /
百度推送 */}}
<meta name="renderer" content="webkit" />
<meta name="force-rendering" content="webkit" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="format-detection" content="telephone=no,email=no" />
<meta name="applicable-device" content="pc,mobile" />
<meta name="MobileOptimized" content="width" />
<meta name="HandheldFriendly" content="true" />
<meta name="theme-color" content="#0A0A0A" />
<meta name="color-scheme" content="dark" />
<meta
name="robots"
content="{{if .robots}}{{.robots}}{{else if .noindex}}noindex,follow{{else}}index,follow,max-image-preview:large,max-snippet:-1,max-video-preview:-1{{end}}"
/>
<meta
name="google-site-verification"
content="{{if .isNavPage}}UEtS2h9mIjbFSM_VHEciNQ5iWuFPq9d-Q2WO0SFyPAw{{else}}r7geXn5kBugzOSLZzyw4v3NBDMQwAmzFCVkqp92odh0{{end}}"
/>
{{if .seoVerify.Baidu}}<meta
name="baidu-site-verification"
content="{{.seoVerify.Baidu}}"
/>{{end}}
<meta name="msvalidate.01" content="427637FF44FBAB9D82DB3E5F4E9BA800" />
<meta name="yandex-verification" content="{{if .isNavPage}}eafd02fb6517fc76{{else}}6bb06ed5659790d0{{end}}" />
<meta
property="og:site_name"
content="{{if .appConfig.SeoInfo.WebSiteName}}{{.appConfig.SeoInfo.WebSiteName}}{{else}}黄果短剧{{end}}"
/>
<meta property="og:locale" content="zh_CN" />
<meta name="twitter:card" content="summary_large_image" />
{{if .canonicalURL}}
<link rel="canonical" href="{{.canonicalURL}}" />
<meta property="og:url" content="{{.canonicalURL}}" />
{{end}}
{{if .paginationPrevURL}}<link rel="prev" href="{{.paginationPrevURL}}" />{{end}}
{{if .paginationNextURL}}<link rel="next" href="{{.paginationNextURL}}" />{{end}}
<link rel="dns-prefetch" href="//zz.bdstatic.com" />
<link rel="preconnect" href="https://zz.bdstatic.com" crossorigin />
<link rel="icon" href="/favicon.svg?v=3" type="image/svg+xml" sizes="any" />
<link rel="icon" href="/favicon.png?v=3" type="image/png" sizes="512x512" />
<link rel="icon" href="/favicon.ico?v=3" type="image/x-icon" sizes="256x256" />
<link rel="apple-touch-icon" href="/favicon.png?v=3" />
{{/* 首屏壳层:合并 base+header+footer+eightPop,减少弱网 RTT(改源文件后跑
scripts/build-shell-css.sh) */}}
<link rel="stylesheet" href="/static/css/shell.css?v=3" />
<style>
/* 弹窗依赖 CSS 隐藏;在完整弹窗样式到达前先压住,避免无样式闪现 */
.download-app-dialog-mask:not(.is-open),
.search-dialog-mask:not(.is-open) {
display: none !important;
}
</style>
{{template "analytics" .}}
<script>
(function () {
function injectBaiduPush() {
var bp = document.createElement("script");
bp.async = true;
bp.src =
location.protocol === "https:"
? "https://zz.bdstatic.com/linksubmit/push.js"
: "http://push.zhanzhang.baidu.com/push.js";
document.head.appendChild(bp);
}
if ("requestIdleCallback" in window) {
requestIdleCallback(injectBaiduPush, { timeout: 3000 });
} else {
window.addEventListener("load", function () {
setTimeout(injectBaiduPush, 800);
});
}
})();
</script>
{{end}}