From c603c3773742125178ae9a5f7638673bad8fff3d Mon Sep 17 00:00:00 2001 From: yiqiu Date: Tue, 25 Nov 2025 17:43:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8E=20SSR=20=E6=B3=A8=E5=85=A5=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E4=B8=AD=E7=A7=BB=E9=99=A4=20partner=20=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除 header.html 中对 partner 字段的 SSR 注入代码 - 确保 window.__themeCommon 不再包含 partner 数据 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- header.html | 69 +++++++++++++++++++++++++---------------------------- 1 file changed, 33 insertions(+), 36 deletions(-) diff --git a/header.html b/header.html index 31fd13f..0256013 100644 --- a/header.html +++ b/header.html @@ -1,6 +1,6 @@ - - - + + + {php} // 在渲染阶段从主题配置插件读取配置,并覆盖 $data 与 SEO 变量,实现 SSR @@ -24,9 +24,6 @@ if (isset($themeCfg['honor'])) { $data['honor'] = $themeCfg['honor']; } - if (isset($themeCfg['partner'])) { - $data['partner'] = $themeCfg['partner']; - } if (isset($themeCfg['friendly_link'])) { $data['friendly_link'] = $themeCfg['friendly_link']; } @@ -81,40 +78,40 @@ {$title} - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + +