From 28de8eb49e989919d49bcb7b64b3b075a444724d Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Thu, 29 Dec 2022 20:51:47 +0800 Subject: [PATCH] =?UTF-8?q?hexo=E5=BE=AE=E8=B0=83=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- styles/notion.css | 2 +- themes/hexo/components/ArticleRecommend.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/styles/notion.css b/styles/notion.css index f3047f6b..9ec0e222 100644 --- a/styles/notion.css +++ b/styles/notion.css @@ -1965,7 +1965,7 @@ thead, tbody tr { } .notion-collection-card{ - @apply dark:hover:text-gray-200 + @apply dark:text-gray-200 dark:bg-gray-800 dark:hover:bg-black } .notion-code-copy{ diff --git a/themes/hexo/components/ArticleRecommend.js b/themes/hexo/components/ArticleRecommend.js index e6900c09..af081a1c 100644 --- a/themes/hexo/components/ArticleRecommend.js +++ b/themes/hexo/components/ArticleRecommend.js @@ -9,6 +9,8 @@ import { useGlobal } from '@/lib/global' * @returns */ export default function ArticleRecommend({ recommendPosts, siteInfo }) { + const { locale } = useGlobal() + if ( !CONFIG_HEXO.ARTICLE_RECOMMEND || !recommendPosts || @@ -16,11 +18,11 @@ export default function ArticleRecommend({ recommendPosts, siteInfo }) { ) { return <> } - const { locale } = useGlobal() + return (
-
+
{locale.COMMON.RELATE_POSTS}