添加大量可配置项
This commit is contained in:
tangly1024
2022-01-04 11:15:23 +08:00
parent 5a34ff2f05
commit ef3a5dffe2
21 changed files with 154 additions and 122 deletions

View File

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