宠物挂件添加到配置
This commit is contained in:
tangly1024
2021-12-31 15:26:12 +08:00
parent b0be0643cf
commit 3c2d82ddfe
3 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -177,7 +177,7 @@ export default function ArticleDetail ({ post, blockMap, recommendPosts, prev, n
</div>
{/* 宠物 */}
<Live2D/>
{BLOG.showPet && <Live2D/>}
</>)
}

View File

@@ -75,7 +75,7 @@ const Index = ({ allPosts, tags, categories }) => {
<BlogPostArchive key={archiveTitle} posts={archivePosts[archiveTitle]} archiveTitle={archiveTitle}/>
))}
</div>
<Live2D/>
{BLOG.showPet && <Live2D/>}
</BaseLayout>
)
}