From 5ecfd69b832041ffcf902804be638fc198b5f062 Mon Sep 17 00:00:00 2001 From: LooseLi <1329307562@qq.com> Date: Tue, 25 Jul 2023 15:32:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E7=BD=91=E7=AB=99=E9=98=85=E8=AF=BB=E9=87=8F=E3=80=81=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E6=95=B0=E7=9A=84Vercel=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blog.config.js | 2 +- themes/heo/components/PostHeader.js | 2 +- themes/hexo/components/PostHeader.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blog.config.js b/blog.config.js index d1a836db..38daef7a 100644 --- a/blog.config.js +++ b/blog.config.js @@ -295,7 +295,7 @@ const BLOG = { // ----> 站点统计 ANALYTICS_VERCEL: process.env.NEXT_PUBLIC_ANALYTICS_VERCEL || false, // vercel自带的统计 https://vercel.com/docs/concepts/analytics/quickstart https://github.com/tangly1024/NotionNext/issues/897 - ANALYTICS_BUSUANZI_ENABLE: true, // 展示网站阅读量、访问数 see http://busuanzi.ibruce.info/ + ANALYTICS_BUSUANZI_ENABLE: process.env.NEXT_PUBLIC_ANALYTICS_BUSUANZI_ENABLE || true, // 展示网站阅读量、访问数 see http://busuanzi.ibruce.info/ ANALYTICS_BAIDU_ID: process.env.NEXT_PUBLIC_ANALYTICS_BAIDU_ID || '', // e.g 只需要填写百度统计的id,[baidu_id] -> https://hm.baidu.com/hm.js?[baidu_id] ANALYTICS_CNZZ_ID: process.env.NEXT_PUBLIC_ANALYTICS_CNZZ_ID || '', // 只需要填写站长统计的id, [cnzz_id] -> https://s9.cnzz.com/z_stat.php?id=[cnzz_id]&web_id=[cnzz_id] ANALYTICS_GOOGLE_ID: process.env.NEXT_PUBLIC_ANALYTICS_GOOGLE_ID || '', // 谷歌Analytics的id e.g: G-XXXXXXXXXX diff --git a/themes/heo/components/PostHeader.js b/themes/heo/components/PostHeader.js index 55f1a37c..dd1330f8 100644 --- a/themes/heo/components/PostHeader.js +++ b/themes/heo/components/PostHeader.js @@ -85,7 +85,7 @@ export default function PostHeader({ post, siteInfo }) { - {BLOG.ANALYTICS_BUSUANZI_ENABLE &&