diff --git a/themes/fukasawa/components/SocialButton.js b/themes/fukasawa/components/SocialButton.js index 234182cf..796d5c5f 100644 --- a/themes/fukasawa/components/SocialButton.js +++ b/themes/fukasawa/components/SocialButton.js @@ -1,5 +1,4 @@ -import BLOG from '@/blog.config' -import React from 'react' +import { siteConfig } from '@/lib/config' /** * 社交联系方式按钮组 @@ -9,34 +8,34 @@ import React from 'react' const SocialButton = () => { return
- {BLOG.CONTACT_GITHUB && + {siteConfig('CONTACT_GITHUB') && } - {BLOG.CONTACT_TWITTER && + {siteConfig('CONTACT_TWITTER') && } - {BLOG.CONTACT_TELEGRAM && + {siteConfig('CONTACT_TELEGRAM') && } - {BLOG.CONTACT_LINKEDIN && + {siteConfig('CONTACT_LINKEDIN') && } - {BLOG.CONTACT_WEIBO && + {siteConfig('CONTACT_WEIBO') && } - {BLOG.CONTACT_INSTAGRAM && + {siteConfig('CONTACT_INSTAGRAM') && } - {BLOG.CONTACT_EMAIL && + {siteConfig('CONTACT_EMAIL') && } - {JSON.parse(BLOG.ENABLE_RSS) && + {JSON.parse(siteConfig('ENABLE_RSS')) && } - {BLOG.CONTACT_BILIBILI && + {siteConfig('CONTACT_BILIBILI') && } - {BLOG.CONTACT_YOUTUBE && + {siteConfig('CONTACT_YOUTUBE') && }
diff --git a/themes/gitbook/components/SocialButton.js b/themes/gitbook/components/SocialButton.js index 164a71fc..b1bd85f9 100644 --- a/themes/gitbook/components/SocialButton.js +++ b/themes/gitbook/components/SocialButton.js @@ -1,5 +1,4 @@ -import BLOG from '@/blog.config' -import React from 'react' +import { siteConfig } from '@/lib/config' /** * 社交联系方式按钮组 @@ -8,28 +7,28 @@ import React from 'react' */ const SocialButton = () => { return
- {BLOG.CONTACT_GITHUB && + {siteConfig('CONTACT_GITHUB') && } - {BLOG.CONTACT_TWITTER && + {siteConfig('CONTACT_TWITTER') && } - {BLOG.CONTACT_TELEGRAM && + {siteConfig('CONTACT_TELEGRAM') && } - {BLOG.CONTACT_LINKEDIN && + {siteConfig('CONTACT_LINKEDIN') && } - {BLOG.CONTACT_WEIBO && + {siteConfig('CONTACT_WEIBO') && } - {BLOG.CONTACT_INSTAGRAM && + {siteConfig('CONTACT_INSTAGRAM') && } - {BLOG.CONTACT_EMAIL && + {siteConfig('CONTACT_EMAIL') && } - {JSON.parse(BLOG.ENABLE_RSS) && + {JSON.parse(siteConfig('ENABLE_RSS')) && }
diff --git a/themes/heo/components/SocialButton.js b/themes/heo/components/SocialButton.js index e684d325..c13cab43 100644 --- a/themes/heo/components/SocialButton.js +++ b/themes/heo/components/SocialButton.js @@ -1,5 +1,4 @@ -import BLOG from '@/blog.config' -import React from 'react' +import { siteConfig } from '@/lib/config' /** * 社交联系方式按钮组 @@ -9,34 +8,34 @@ import React from 'react' const SocialButton = () => { return
- {BLOG.CONTACT_GITHUB && + {siteConfig('CONTACT_GITHUB') && } - {BLOG.CONTACT_TWITTER && + {siteConfig('CONTACT_TWITTER') && } - {BLOG.CONTACT_TELEGRAM && + {siteConfig('CONTACT_TELEGRAM') && } - {BLOG.CONTACT_LINKEDIN && + {siteConfig('CONTACT_LINKEDIN') && } - {BLOG.CONTACT_WEIBO && + {siteConfig('CONTACT_WEIBO') && } - {BLOG.CONTACT_INSTAGRAM && + {siteConfig('CONTACT_INSTAGRAM') && } - {BLOG.CONTACT_EMAIL && + {siteConfig('CONTACT_EMAIL') && } - {JSON.parse(BLOG.ENABLE_RSS) && + {JSON.parse(siteConfig('ENABLE_RSS')) && } - {BLOG.CONTACT_BILIBILI && + {siteConfig('CONTACT_BILIBILI') && } - {BLOG.CONTACT_YOUTUBE && + {siteConfig('CONTACT_YOUTUBE') && }
diff --git a/themes/hexo/components/SocialButton.js b/themes/hexo/components/SocialButton.js index 1a0b9466..38f3cc7f 100644 --- a/themes/hexo/components/SocialButton.js +++ b/themes/hexo/components/SocialButton.js @@ -1,5 +1,4 @@ -import BLOG from '@/blog.config' -import React from 'react' +import { siteConfig } from '@/lib/config' /** * 社交联系方式按钮组 @@ -9,34 +8,34 @@ import React from 'react' const SocialButton = () => { return
- {BLOG.CONTACT_GITHUB && + {siteConfig('CONTACT_GITHUB') && } - {BLOG.CONTACT_TWITTER && + {siteConfig('CONTACT_TWITTER') && } - {BLOG.CONTACT_TELEGRAM && + {siteConfig('CONTACT_TELEGRAM') && } - {BLOG.CONTACT_LINKEDIN && + {siteConfig('CONTACT_LINKEDIN') && } - {BLOG.CONTACT_WEIBO && + {siteConfig('CONTACT_WEIBO') && } - {BLOG.CONTACT_INSTAGRAM && + {siteConfig('CONTACT_INSTAGRAM') && } - {BLOG.CONTACT_EMAIL && + {siteConfig('CONTACT_EMAIL') && } - {JSON.parse(BLOG.ENABLE_RSS) && + {JSON.parse(siteConfig('ENABLE_RSS')) && } - {BLOG.CONTACT_BILIBILI && + {siteConfig('CONTACT_BILIBILI') && } - {BLOG.CONTACT_YOUTUBE && + {siteConfig('CONTACT_YOUTUBE') && }
diff --git a/themes/matery/components/SocialButton.js b/themes/matery/components/SocialButton.js index 9fc88a5c..ae15d1f0 100644 --- a/themes/matery/components/SocialButton.js +++ b/themes/matery/components/SocialButton.js @@ -1,5 +1,5 @@ -import BLOG from '@/blog.config' -import React, { useState } from 'react' +import { siteConfig } from '@/lib/config' +import { useState } from 'react' /** * 社交联系方式按钮组 可折叠的组件 @@ -15,34 +15,34 @@ const SocialButton = () => { return
{!show && } {show && <> - {BLOG.CONTACT_GITHUB && + {siteConfig('CONTACT_GITHUB') && } - {BLOG.CONTACT_TWITTER && + {siteConfig('CONTACT_TWITTER') && } - {BLOG.CONTACT_TELEGRAM && + {siteConfig('CONTACT_TELEGRAM') && } - {BLOG.CONTACT_LINKEDIN && + {siteConfig('CONTACT_LINKEDIN') && } - {BLOG.CONTACT_WEIBO && + {siteConfig('CONTACT_WEIBO') && } - {BLOG.CONTACT_INSTAGRAM && + {siteConfig('CONTACT_INSTAGRAM') && } - {BLOG.CONTACT_EMAIL && + {siteConfig('CONTACT_EMAIL') && } - {JSON.parse(BLOG.ENABLE_RSS) && + {JSON.parse(siteConfig('ENABLE_RSS')) && } - {BLOG.CONTACT_BILIBILI && + {siteConfig('CONTACT_BILIBILI') && } - {BLOG.CONTACT_YOUTUBE && + {siteConfig('CONTACT_YOUTUBE') && } diff --git a/themes/medium/components/SocialButton.js b/themes/medium/components/SocialButton.js index 3a31552e..e522f114 100644 --- a/themes/medium/components/SocialButton.js +++ b/themes/medium/components/SocialButton.js @@ -1,5 +1,4 @@ -import BLOG from '@/blog.config' -import React from 'react' +import { siteConfig } from '@/lib/config' /** * 社交联系方式按钮组 @@ -8,34 +7,34 @@ import React from 'react' */ const SocialButton = () => { return
- {BLOG.CONTACT_GITHUB && + {siteConfig('CONTACT_GITHUB') && } - {BLOG.CONTACT_TWITTER && + {siteConfig('CONTACT_TWITTER') && } - {BLOG.CONTACT_TELEGRAM && + {siteConfig('CONTACT_TELEGRAM') && } - {BLOG.CONTACT_LINKEDIN && + {siteConfig('CONTACT_LINKEDIN') && } - {BLOG.CONTACT_WEIBO && + {siteConfig('CONTACT_WEIBO') && } - {BLOG.CONTACT_INSTAGRAM && + {siteConfig('CONTACT_INSTAGRAM') && } - {BLOG.CONTACT_EMAIL && + {siteConfig('CONTACT_EMAIL') && } - {JSON.parse(BLOG.ENABLE_RSS) && + {JSON.parse(siteConfig('ENABLE_RSS')) && } - {BLOG.CONTACT_BILIBILI && + {siteConfig('CONTACT_BILIBILI') && } - {BLOG.CONTACT_YOUTUBE && + {siteConfig('CONTACT_YOUTUBE') && }
diff --git a/themes/nav/components/SocialButton.js b/themes/nav/components/SocialButton.js index 164a71fc..b1bd85f9 100755 --- a/themes/nav/components/SocialButton.js +++ b/themes/nav/components/SocialButton.js @@ -1,5 +1,4 @@ -import BLOG from '@/blog.config' -import React from 'react' +import { siteConfig } from '@/lib/config' /** * 社交联系方式按钮组 @@ -8,28 +7,28 @@ import React from 'react' */ const SocialButton = () => { return
- {BLOG.CONTACT_GITHUB && + {siteConfig('CONTACT_GITHUB') && } - {BLOG.CONTACT_TWITTER && + {siteConfig('CONTACT_TWITTER') && } - {BLOG.CONTACT_TELEGRAM && + {siteConfig('CONTACT_TELEGRAM') && } - {BLOG.CONTACT_LINKEDIN && + {siteConfig('CONTACT_LINKEDIN') && } - {BLOG.CONTACT_WEIBO && + {siteConfig('CONTACT_WEIBO') && } - {BLOG.CONTACT_INSTAGRAM && + {siteConfig('CONTACT_INSTAGRAM') && } - {BLOG.CONTACT_EMAIL && + {siteConfig('CONTACT_EMAIL') && } - {JSON.parse(BLOG.ENABLE_RSS) && + {JSON.parse(siteConfig('ENABLE_RSS')) && }
diff --git a/themes/next/components/SocialButton.js b/themes/next/components/SocialButton.js index 7508b273..6da30787 100644 --- a/themes/next/components/SocialButton.js +++ b/themes/next/components/SocialButton.js @@ -1,5 +1,4 @@ -import BLOG from '@/blog.config' -import React from 'react' +import { siteConfig } from '@/lib/config' /** * 社交联系方式按钮组 @@ -9,34 +8,34 @@ import React from 'react' const SocialButton = () => { return
- {BLOG.CONTACT_GITHUB && + {siteConfig('CONTACT_GITHUB') && } - {BLOG.CONTACT_TWITTER && + {siteConfig('CONTACT_TWITTER') && } - {BLOG.CONTACT_TELEGRAM && + {siteConfig('CONTACT_TELEGRAM') && } - {BLOG.CONTACT_LINKEDIN && + {siteConfig('CONTACT_LINKEDIN') && } - {BLOG.CONTACT_WEIBO && + {siteConfig('CONTACT_WEIBO') && } - {BLOG.CONTACT_INSTAGRAM && + {siteConfig('CONTACT_INSTAGRAM') && } - {BLOG.CONTACT_EMAIL && + {siteConfig('CONTACT_EMAIL') && } - {JSON.parse(BLOG.ENABLE_RSS) && + {JSON.parse(siteConfig('ENABLE_RSS')) && } - {BLOG.CONTACT_BILIBILI && + {siteConfig('CONTACT_BILIBILI') && } - {BLOG.CONTACT_YOUTUBE && + {siteConfig('CONTACT_YOUTUBE') && }
diff --git a/themes/plog/components/SocialButton.js b/themes/plog/components/SocialButton.js index 821ff90c..56cf9490 100644 --- a/themes/plog/components/SocialButton.js +++ b/themes/plog/components/SocialButton.js @@ -1,5 +1,4 @@ -import BLOG from '@/blog.config' -import React from 'react' +import { siteConfig } from '@/lib/config' /** * 社交联系方式按钮组 @@ -9,34 +8,34 @@ import React from 'react' const SocialButton = () => { return
- {BLOG.CONTACT_GITHUB && + {siteConfig('CONTACT_GITHUB') && } - {BLOG.CONTACT_TWITTER && + {siteConfig('CONTACT_TWITTER') && } - {BLOG.CONTACT_TELEGRAM && + {siteConfig('CONTACT_TELEGRAM') && } - {BLOG.CONTACT_LINKEDIN && + {siteConfig('CONTACT_LINKEDIN') && } - {BLOG.CONTACT_WEIBO && + {siteConfig('CONTACT_WEIBO') && } - {BLOG.CONTACT_INSTAGRAM && + {siteConfig('CONTACT_INSTAGRAM') && } - {BLOG.CONTACT_EMAIL && + {siteConfig('CONTACT_EMAIL') && } - {JSON.parse(BLOG.ENABLE_RSS) && + {JSON.parse(siteConfig('ENABLE_RSS')) && } - {BLOG.CONTACT_BILIBILI && + {siteConfig('CONTACT_BILIBILI') && } - {BLOG.CONTACT_YOUTUBE && + {siteConfig('CONTACT_YOUTUBE') && }
diff --git a/themes/simple/components/SocialButton.js b/themes/simple/components/SocialButton.js index 6a53cd70..0e2b9065 100644 --- a/themes/simple/components/SocialButton.js +++ b/themes/simple/components/SocialButton.js @@ -1,5 +1,4 @@ -import BLOG from '@/blog.config' -import React from 'react' +import { siteConfig } from '@/lib/config' /** * 社交联系方式按钮组 @@ -9,34 +8,34 @@ import React from 'react' const SocialButton = () => { return
- {BLOG.CONTACT_GITHUB && + {siteConfig('CONTACT_GITHUB') && } - {BLOG.CONTACT_TWITTER && + {siteConfig('CONTACT_TWITTER') && } - {BLOG.CONTACT_TELEGRAM && + {siteConfig('CONTACT_TELEGRAM') && } - {BLOG.CONTACT_LINKEDIN && + {siteConfig('CONTACT_LINKEDIN') && } - {BLOG.CONTACT_WEIBO && + {siteConfig('CONTACT_WEIBO') && } - {BLOG.CONTACT_INSTAGRAM && + {siteConfig('CONTACT_INSTAGRAM') && } - {BLOG.CONTACT_EMAIL && + {siteConfig('CONTACT_EMAIL') && } - {JSON.parse(BLOG.ENABLE_RSS) && + {JSON.parse(siteConfig('ENABLE_RSS')) && } - {BLOG.CONTACT_BILIBILI && + {siteConfig('CONTACT_BILIBILI') && } - {BLOG.CONTACT_YOUTUBE && + {siteConfig('CONTACT_YOUTUBE') && }