Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
78 lines
3.2 KiB
HTML
78 lines
3.2 KiB
HTML
{{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=2" type="image/svg+xml" sizes="any" />
|
||
<link rel="icon" href="/favicon.png?v=2" type="image/png" sizes="512x512" />
|
||
<link rel="icon" href="/favicon.ico?v=2" type="image/x-icon" sizes="256x256" />
|
||
<link rel="apple-touch-icon" href="/favicon.png?v=2" />
|
||
{{/* 首屏壳层:合并 base+header+footer+eightPop,减少弱网 RTT(改源文件后跑
|
||
scripts/build-shell-css.sh) */}}
|
||
<link rel="stylesheet" href="/static/css/shell.css?v=3" />
|
||
<style>
|
||
/* 弹窗依赖 CSS 隐藏;在完整弹窗样式到达前先压住,避免无样式闪现 */
|
||
.login-dialog-mask:not(.is-open),
|
||
.register-dialog-mask:not(.is-open),
|
||
.download-app-dialog-mask:not(.is-open),
|
||
.search-dialog-mask:not(.is-open) {
|
||
display: none !important;
|
||
}
|
||
</style>
|
||
{{template "trackerInit" .}}
|
||
<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}}
|