refactor: NEXT 主题配置规整

This commit is contained in:
tangly1024
2022-01-16 09:23:00 +08:00
parent 8be7389462
commit 4909557397
26 changed files with 132 additions and 316 deletions

View File

@@ -1,8 +1,8 @@
import BLOG from '@/blog.config'
import { useGlobal } from '@/lib/global'
import { faListOl } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import React from 'react'
import CONFIG_NEXT from '@/themes/NEXT/config_next'
/**
* 点击召唤目录抽屉
@@ -12,7 +12,7 @@ import React from 'react'
* @constructor
*/
const TocDrawerButton = (props) => {
if (!BLOG.widget?.showToc) {
if (!CONFIG_NEXT.WIDGET_TOC) {
return <></>
}
const { locale } = useGlobal()