From 069f9058ac3dfb474e97b34cfb5b30911016ed88 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=AE=B5=E6=9E=AB?=
<128354383+laogou717@users.noreply.github.com>
Date: Thu, 12 Sep 2024 13:34:13 +0800
Subject: [PATCH] Update BlogPostCard.js
---
themes/heo/components/BlogPostCard.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/themes/heo/components/BlogPostCard.js b/themes/heo/components/BlogPostCard.js
index 3f1921a0..c6e09f4a 100644
--- a/themes/heo/components/BlogPostCard.js
+++ b/themes/heo/components/BlogPostCard.js
@@ -1,5 +1,5 @@
import LazyImage from '@/components/LazyImage'
-import NotionIcon from '@/components/NotionIcon'
+import NotionIcon from './NotionIcon'
import { siteConfig } from '@/lib/config'
import Link from 'next/link'
import CONFIG from '../config'
@@ -83,9 +83,9 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => {
}>
{siteConfig('POST_TITLE_ICON') && (
+ icon={post.pageIcon}
+ className="heo-icon w-6 h-6 mr-1 align-middle transform translate-y-[-8%]" // 专门为 Heo 主题的图标设置样式
+ />
)}
{post.title}
@@ -112,4 +112,4 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => {
)
}
-export default BlogPostCard
\ No newline at end of file
+export default BlogPostCard