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..136f5085 100644
--- a/components/ArticleDetail.js
+++ b/components/ArticleDetail.js
@@ -177,6 +177,7 @@ export default function ArticleDetail ({ post, blockMap, recommendPosts, prev, n
{/* 宠物 */}
+ {BLOG.showPet &&