mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-26 23:16:50 +00:00
主题配置文件Notion化
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { useGlobal } from '@/lib/global'
|
||||
import CONFIG from '../config'
|
||||
import { siteConfig } from '@/lib/config'
|
||||
|
||||
/**
|
||||
* 点击召唤目录抽屉
|
||||
@@ -10,7 +11,7 @@ import CONFIG from '../config'
|
||||
*/
|
||||
const TocDrawerButton = (props) => {
|
||||
const { locale } = useGlobal()
|
||||
if (!CONFIG.WIDGET_TOC) {
|
||||
if (!siteConfig('NEXT_WIDGET_TOC', null, CONFIG)) {
|
||||
return <></>
|
||||
}
|
||||
if (props?.post?.toc?.length > 1) {
|
||||
|
||||
Reference in New Issue
Block a user