mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-22 23:16:48 +00:00
Merge branch 'preview' into feature_last_update_time
This commit is contained in:
@@ -7,11 +7,12 @@ import 'react-notion-x/src/styles.css'
|
||||
import '@/styles/notion.css' // 重写部分样式
|
||||
|
||||
// used for collection views (optional)
|
||||
import 'rc-dropdown/assets/index.css'
|
||||
// import 'rc-dropdown/assets/index.css'
|
||||
// used for code syntax highlighting (optional)
|
||||
import 'prismjs/themes/prism-okaidia.css'
|
||||
// used for rendering equations (optional)
|
||||
import 'katex/dist/katex.min.css'
|
||||
import 'react-notion-x/build/third-party/equation.css'
|
||||
|
||||
import dynamic from 'next/dynamic'
|
||||
import { GlobalContextProvider } from '@/lib/global'
|
||||
import { DebugPanel } from '@/components/DebugPanel'
|
||||
@@ -25,15 +26,15 @@ const GoogleAdsense = dynamic(() => import('@/components/GoogleAdsense'), { ssr:
|
||||
const MyApp = ({ Component, pageProps }) => {
|
||||
return (
|
||||
<GlobalContextProvider>
|
||||
{BLOG.THEME_SWITCH && <ThemeSwitch/>}
|
||||
{BLOG.DEBUG && <DebugPanel/>}
|
||||
{BLOG.ANALYTICS_ACKEE_TRACKER && <Ackee />}
|
||||
{BLOG.ANALYTICS_GOOGLE_ID && <Gtag />}
|
||||
{JSON.parse(BLOG.ANALYTICS_BUSUANZI_ENABLE) && <Busuanzi/>}
|
||||
{BLOG.ADSENSE_GOOGLE_ID && <GoogleAdsense/>}
|
||||
{/* FontawesomeCDN */}
|
||||
<link href={BLOG.FONT_AWESOME_PATH} rel="stylesheet" referrerPolicy="no-referrer" />
|
||||
<Component {...pageProps} />
|
||||
{BLOG.THEME_SWITCH && <ThemeSwitch />}
|
||||
{BLOG.DEBUG && <DebugPanel />}
|
||||
{BLOG.ANALYTICS_ACKEE_TRACKER && <Ackee />}
|
||||
{BLOG.ANALYTICS_GOOGLE_ID && <Gtag />}
|
||||
{JSON.parse(BLOG.ANALYTICS_BUSUANZI_ENABLE) && <Busuanzi />}
|
||||
{BLOG.ADSENSE_GOOGLE_ID && <GoogleAdsense />}
|
||||
{/* FontawesomeCDN */}
|
||||
<link href={BLOG.FONT_AWESOME_PATH} rel="stylesheet" referrerPolicy="no-referrer" />
|
||||
<Component {...pageProps} />
|
||||
|
||||
</GlobalContextProvider>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user