diff --git a/blog.config.js b/blog.config.js index 9807f2bed25..73f106b57c0 100644 --- a/blog.config.js +++ b/blog.config.js @@ -37,6 +37,9 @@ const BLOG = { CONTACT_INSTAGRAM: process.env.NEXT_PUBLIC_CONTACT_INSTAGRAM || '', // 您的instagram地址 CONTACT_BILIBILI: process.env.NEXT_PUBLIC_CONTACT_BILIBILI || 'https://space.bilibili.com/1036711705', // B站主页 CONTACT_YOUTUBE: process.env.NEXT_PUBLIC_CONTACT_YOUTUBE || '', // Youtube主页 + CONTACT_XIAOHONGSHU: process.env.NEXT_PUBLIC_CONTACT_XIAOHONGSHU || '', // 小红书主页 + CONTACT_ZHISHIXINGQIU: process.env.NEXT_PUBLIC_CONTACT_ZHISHIXINGQIU || '', // 知识星球 + CONTACT_WEHCHAT_PUBLIC: process.env.NEXT_PUBLIC_CONTACT_WEHCHAT_PUBLIC || '', // 微信公众号 格式:https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=【xxxxxx】==#wechat_redirect NOTION_HOST: process.env.NEXT_PUBLIC_NOTION_HOST || 'https://www.notion.so', // Notion域名,您可以选择用自己的域名进行反向代理,如果不懂得什么是反向代理,请勿修改此项 diff --git a/lib/global.js b/lib/global.js index d673c3ea715..71f2a74f3f0 100644 --- a/lib/global.js +++ b/lib/global.js @@ -79,7 +79,10 @@ export function GlobalContextProvider(props) { useEffect(() => { initDarkMode(updateDarkMode, defaultDarkMode) initLocale(lang, locale, updateLang, updateLocale) - redirectUserLang(NOTION_PAGE_ID) + // 可以 + if (NOTION_CONFIG?.REDIRECT_LANG) { + redirectUserLang(NOTION_PAGE_ID) + } }, []) // 加载进度条 diff --git a/public/svg/xiaohongshu.svg b/public/svg/xiaohongshu.svg new file mode 100644 index 00000000000..3a5e4222c22 --- /dev/null +++ b/public/svg/xiaohongshu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/svg/zhishixingqiu.svg b/public/svg/zhishixingqiu.svg new file mode 100644 index 00000000000..77293e8f1ac --- /dev/null +++ b/public/svg/zhishixingqiu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/heo/components/Header.js b/themes/heo/components/Header.js index f0b823dc994..3e1fd81433d 100644 --- a/themes/heo/components/Header.js +++ b/themes/heo/components/Header.js @@ -140,7 +140,7 @@ const Header = props => { {/* 顶部导航菜单栏 */}