From 6cdf9874ba23c219ad1733db3333843001c63a63 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sun, 12 Mar 2023 22:03:22 +0800 Subject: [PATCH] hexo-img --- next.config.js | 1 + themes/hexo/components/BlogPostCard.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index 4f2dd12a..65fde6e7 100644 --- a/next.config.js +++ b/next.config.js @@ -12,6 +12,7 @@ module.exports = withBundleAnalyzer({ 'www.notion.so', 'avatars.githubusercontent.com', 'images.unsplash.com', + 'source.unsplash.com', 'p1.qhimg.com' ] }, diff --git a/themes/hexo/components/BlogPostCard.js b/themes/hexo/components/BlogPostCard.js index acc06a34..02940295 100644 --- a/themes/hexo/components/BlogPostCard.js +++ b/themes/hexo/components/BlogPostCard.js @@ -94,7 +94,7 @@ const BlogPostCard = ({ post, showSummary, siteInfo }) => { {showPageCover && !showPreview && post?.page_cover && ( -
+
{/* eslint-disable-next-line @next/next/no-img-element */} {/* { alt={post.title} className="w-full cursor-pointer object-cover duration-200 hover:scale-125 " /> */} -
+