mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-04 15:10:23 +00:00
Merge branch 'main' into pr/noeFly/3223
This commit is contained in:
@@ -11,6 +11,8 @@ import Head from 'next/head'
|
||||
import ExternalScript from './ExternalScript'
|
||||
import WebWhiz from './Webwhiz'
|
||||
import { useGlobal } from '@/lib/global'
|
||||
import IconFont from './IconFont'
|
||||
|
||||
|
||||
/**
|
||||
* 各种插件脚本
|
||||
@@ -126,6 +128,8 @@ const ExternalPlugin = props => {
|
||||
NOTION_CONFIG
|
||||
)
|
||||
|
||||
const ENABLE_ICON_FONT = siteConfig('ENABLE_ICON_FONT', false)
|
||||
|
||||
// 自定义样式css和js引入
|
||||
if (isBrowser) {
|
||||
// 初始化AOS动画
|
||||
@@ -186,6 +190,7 @@ const ExternalPlugin = props => {
|
||||
<>
|
||||
{/* 全局样式嵌入 */}
|
||||
<GlobalStyle />
|
||||
{ENABLE_ICON_FONT && <IconFont />}
|
||||
{MOUSE_FOLLOW && <MouseFollow />}
|
||||
{THEME_SWITCH && <ThemeSwitch />}
|
||||
{DEBUG && <DebugPanel />}
|
||||
|
||||
Reference in New Issue
Block a user