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 && } ) diff --git a/components/InfoCard.js b/components/InfoCard.js index 9afc803f..da214ec8 100644 --- a/components/InfoCard.js +++ b/components/InfoCard.js @@ -13,7 +13,7 @@ const InfoCard = ({ postCount }) => { height={120} loading='lazy' src='/avatar.jpg' - className='rounded-full border-black' + className='rounded-full' />
{BLOG.title}
diff --git a/components/LatestPostsGroup.js b/components/LatestPostsGroup.js index a754553c..3b7d5b31 100644 --- a/components/LatestPostsGroup.js +++ b/components/LatestPostsGroup.js @@ -33,8 +33,8 @@ const LatestPostsGroup = ({ posts, sliceCount = 5 }) => { return ( -
+
{post.title}
diff --git a/components/SideAreaRight.js b/components/SideAreaRight.js index b2cafa35..4eb35421 100644 --- a/components/SideAreaRight.js +++ b/components/SideAreaRight.js @@ -78,7 +78,7 @@ const SideAreaRight = ({ {categories && (
-
{locale.COMMON.CATEGORY}
+
{locale.COMMON.CATEGORY}
{locale.COMMON.MORE} @@ -93,7 +93,7 @@ const SideAreaRight = ({ {posts && (
-
+
{locale.COMMON.LATEST_POSTS} NEW 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 && } ) }