从 SSR 注入逻辑中移除 partner 数据
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- 删除 header.html 中对 partner 字段的 SSR 注入代码 - 确保 window.__themeCommon 不再包含 partner 数据 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
69
header.html
69
header.html
@@ -1,6 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" theme-color="default" theme-mode id="addons_js" addons_js='{:json_encode($addons)}'>
|
<html lang="en" theme-color="default" theme-mode id="addons_js" addons_js='{:json_encode($addons)}'>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
{php}
|
{php}
|
||||||
// 在渲染阶段从主题配置插件读取配置,并覆盖 $data 与 SEO 变量,实现 SSR
|
// 在渲染阶段从主题配置插件读取配置,并覆盖 $data 与 SEO 变量,实现 SSR
|
||||||
@@ -24,9 +24,6 @@
|
|||||||
if (isset($themeCfg['honor'])) {
|
if (isset($themeCfg['honor'])) {
|
||||||
$data['honor'] = $themeCfg['honor'];
|
$data['honor'] = $themeCfg['honor'];
|
||||||
}
|
}
|
||||||
if (isset($themeCfg['partner'])) {
|
|
||||||
$data['partner'] = $themeCfg['partner'];
|
|
||||||
}
|
|
||||||
if (isset($themeCfg['friendly_link'])) {
|
if (isset($themeCfg['friendly_link'])) {
|
||||||
$data['friendly_link'] = $themeCfg['friendly_link'];
|
$data['friendly_link'] = $themeCfg['friendly_link'];
|
||||||
}
|
}
|
||||||
@@ -81,40 +78,40 @@
|
|||||||
<title>{$title}</title>
|
<title>{$title}</title>
|
||||||
<meta name="keywords" content="{$keywords}" />
|
<meta name="keywords" content="{$keywords}" />
|
||||||
<meta name="description" content="{$description}" />
|
<meta name="description" content="{$description}" />
|
||||||
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="Content-Language" content="zh-cn">
|
<meta http-equiv="Content-Language" content="zh-cn">
|
||||||
|
|
||||||
<!-- 公共区域 -->
|
<!-- 公共区域 -->
|
||||||
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
||||||
<link rel="stylesheet" href="/web/BlackFruit-web/assets/font/iconfont.css">
|
<link rel="stylesheet" href="/web/BlackFruit-web/assets/font/iconfont.css">
|
||||||
<link rel="stylesheet" href="/web/BlackFruit-web/common/reset.css">
|
<link rel="stylesheet" href="/web/BlackFruit-web/common/reset.css">
|
||||||
<link rel="stylesheet" href="/web/BlackFruit-web/common/style.css">
|
<link rel="stylesheet" href="/web/BlackFruit-web/common/style.css">
|
||||||
<link rel="stylesheet" href="/web/BlackFruit-web/common/theme.css">
|
<link rel="stylesheet" href="/web/BlackFruit-web/common/theme.css">
|
||||||
<link rel="stylesheet" href="/web/BlackFruit-web/common/common.css">
|
<link rel="stylesheet" href="/web/BlackFruit-web/common/common.css">
|
||||||
<link rel="stylesheet" href="/web/BlackFruit-web/vender/animate/animate.css">
|
<link rel="stylesheet" href="/web/BlackFruit-web/vender/animate/animate.css">
|
||||||
<script src="/web/BlackFruit-web/vender/jQuery/jquery-3.5.1.min.js"></script>
|
<script src="/web/BlackFruit-web/vender/jQuery/jquery-3.5.1.min.js"></script>
|
||||||
|
|
||||||
<!-- bootstrap -->
|
<!-- bootstrap -->
|
||||||
<link rel="stylesheet" href="/web/BlackFruit-web/vender/bootstrap/css/bootstrap.min.css">
|
<link rel="stylesheet" href="/web/BlackFruit-web/vender/bootstrap/css/bootstrap.min.css">
|
||||||
<script src="/web/BlackFruit-web/vender/bootstrap/js/bootstrap.min.js"></script>
|
<script src="/web/BlackFruit-web/vender/bootstrap/js/bootstrap.min.js"></script>
|
||||||
<!-- swiper -->
|
<!-- swiper -->
|
||||||
<link rel="stylesheet" href="/web/BlackFruit-web/vender/swiper/swiper-bundle.min.css">
|
<link rel="stylesheet" href="/web/BlackFruit-web/vender/swiper/swiper-bundle.min.css">
|
||||||
<script src="/web/BlackFruit-web/vender/swiper/swiper-bundle.min.js"></script>
|
<script src="/web/BlackFruit-web/vender/swiper/swiper-bundle.min.js"></script>
|
||||||
|
|
||||||
<script src="/web/BlackFruit-web/common/common.js"></script>
|
<script src="/web/BlackFruit-web/common/common.js"></script>
|
||||||
<script src="/web/BlackFruit-web/js/ai.js"></script>
|
<script src="/web/BlackFruit-web/js/ai.js"></script>
|
||||||
|
|
||||||
<link rel="alternate" hreflang="zh-Hans" href="{$url}">
|
<link rel="alternate" hreflang="zh-Hans" href="{$url}">
|
||||||
<link rel="canonical" href="{$url}">
|
<link rel="canonical" href="{$url}">
|
||||||
<script type="application/ld+json">
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "https://ziyuan.baidu.com/contexts/cambrian.jsonld",
|
"@context": "https://ziyuan.baidu.com/contexts/cambrian.jsonld",
|
||||||
"@id": "{$url}",
|
"@id": "{$url}",
|
||||||
"title": "{$title}",
|
"title": "{$title}",
|
||||||
"description": "{$description}",
|
"description": "{$description}",
|
||||||
"pubDate": "{$pub_date}",
|
"pubDate": "{$pub_date}",
|
||||||
"upDate": "{$up_date}"
|
"upDate": "{$up_date}"
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user