From 3c2d82ddfefdc5cc9ab495652bcc54e528dcd79a Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Fri, 31 Dec 2021 15:26:12 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E5=AE=A0=E7=89=A9=E6=8C=82=E4=BB=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blog.config.js | 3 ++- components/ArticleDetail.js | 2 +- pages/archive/index.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/blog.config.js b/blog.config.js index d590af63..dd0180af 100644 --- a/blog.config.js +++ b/blog.config.js @@ -62,7 +62,8 @@ const BLOG = { googleAdsenseId: 'ca-pub-2708419466378217', // 谷歌广告ID DaoVoiceId: '', // 在线聊天 DaoVoice http://dashboard.daovoice.io/get-started TidioId: '', // 在线聊天 https://www.tidio.com/ - isProd: process.env.VERCEL_ENV === 'production' // distinguish between development and production environment (ref: https://vercel.com/docs/environment-variables#system-environment-variables) + isProd: process.env.VERCEL_ENV === 'production', // distinguish between development and production environment (ref: https://vercel.com/docs/environment-variables#system-environment-variables) + showPet: true // 详情页是否显示宠物挂件 } // export default BLOG diff --git a/components/ArticleDetail.js b/components/ArticleDetail.js index ed2f623a..73a762e5 100644 --- a/components/ArticleDetail.js +++ b/components/ArticleDetail.js @@ -177,7 +177,7 @@ export default function ArticleDetail ({ post, blockMap, recommendPosts, prev, n {/* 宠物 */} - + {BLOG.showPet && } ) } diff --git a/pages/archive/index.js b/pages/archive/index.js index 1d4c1550..47ab9f59 100644 --- a/pages/archive/index.js +++ b/pages/archive/index.js @@ -75,7 +75,7 @@ const Index = ({ allPosts, tags, categories }) => { ))} - + {BLOG.showPet && } ) }