mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-24 07:26:50 +00:00
推荐为空时的样式
This commit is contained in:
@@ -9,7 +9,7 @@ import { useGlobal } from '@/lib/global'
|
||||
* @returns
|
||||
*/
|
||||
export default function ArticleRecommend ({ recommendPosts }) {
|
||||
if (!recommendPosts || !CONFIG_HEXO.ARTICLE_RECOMMEND) {
|
||||
if (!CONFIG_HEXO.ARTICLE_RECOMMEND || !recommendPosts || recommendPosts.length === 0) {
|
||||
return <></>
|
||||
}
|
||||
const { locale } = useGlobal()
|
||||
|
||||
Reference in New Issue
Block a user