Magzine主题基础版本

This commit is contained in:
tangly1024.com
2024-09-13 17:07:09 +08:00
parent e01d090e8c
commit 0dae01f547
23 changed files with 499 additions and 229 deletions

View File

@@ -63,7 +63,8 @@ const ExternalPlugin = props => {
const MOUSE_FOLLOW = siteConfig('MOUSE_FOLLOW')
const CUSTOM_EXTERNAL_CSS = siteConfig('CUSTOM_EXTERNAL_CSS')
const CUSTOM_EXTERNAL_JS = siteConfig('CUSTOM_EXTERNAL_JS')
const ENABLE_NPROGRSS = siteConfig('ENABLE_NPROGRSS', true)
// 默认关闭NProgress
const ENABLE_NPROGRSS = siteConfig('ENABLE_NPROGRSS', false)
// 自定义样式css和js引入
if (isBrowser) {

View File

@@ -73,8 +73,11 @@ const OpenWrite = () => {
console.error('OpenWrite 加载异常', error)
}
}
useEffect(() => {
if (process.env.NODE_ENV === 'development') {
console.log('开发环境:屏蔽OpenWrite')
return
}
if (isBrowser && blogId) {
// Check if the element with id 'read-more-wrap' already exists
const readMoreWrap = document.getElementById('read-more-wrap')