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 && }
)
}