mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
feature:
宠物挂件添加到配置
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -177,7 +177,7 @@ export default function ArticleDetail ({ post, blockMap, recommendPosts, prev, n
|
||||
</div>
|
||||
|
||||
{/* 宠物 */}
|
||||
<Live2D/>
|
||||
{BLOG.showPet && <Live2D/>}
|
||||
|
||||
</>)
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ const Index = ({ allPosts, tags, categories }) => {
|
||||
<BlogPostArchive key={archiveTitle} posts={archivePosts[archiveTitle]} archiveTitle={archiveTitle}/>
|
||||
))}
|
||||
</div>
|
||||
<Live2D/>
|
||||
{BLOG.showPet && <Live2D/>}
|
||||
</BaseLayout>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user