diff --git a/themes/hexo/components/ArticleRecommend.js b/themes/hexo/components/ArticleRecommend.js index a0503694..2bde709c 100644 --- a/themes/hexo/components/ArticleRecommend.js +++ b/themes/hexo/components/ArticleRecommend.js @@ -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()