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,13 +1,13 @@
import React from 'react'
import Link from 'next/link'
import { useGlobal } from '@/lib/global'
import BLOG from '@/blog.config'
import CONFIG_NEXT from '@/themes/NEXT/config_next'
/**
* 展示文章推荐
*/
const RecommendPosts = ({ recommendPosts }) => {
if (!BLOG.widget?.showRelatePosts || !recommendPosts || recommendPosts.length < 1) {
if (!CONFIG_NEXT.ARTICLE_RELATE_POSTS || !recommendPosts || recommendPosts.length < 1) {
return <></>
}
const { locale } = useGlobal()