diff --git a/components/BlogPostCard.js b/components/BlogPostCard.js index 7685b5de..fe5c0cd8 100644 --- a/components/BlogPostCard.js +++ b/components/BlogPostCard.js @@ -8,8 +8,8 @@ import TagItemMini from './TagItemMini' const BlogPostCard = ({ post, tags }) => { return ( -
+
@@ -41,8 +41,8 @@ const BlogPostCard = ({ post, tags }) => { {post?.page_cover && ( -
- {post.title} +
+ {post.title}
)} diff --git a/components/BlogPostListScroll.js b/components/BlogPostListScroll.js index f9cc534a..d3f29448 100644 --- a/components/BlogPostListScroll.js +++ b/components/BlogPostListScroll.js @@ -56,7 +56,7 @@ const BlogPostListScroll = ({ posts = [], tags, currentSearch, currentCategory, return
{/* 文章列表 */} -
+
{postsToShow.map(post => ( ))} diff --git a/components/Header.js b/components/Header.js index c64497e2..b4f045f9 100644 --- a/components/Header.js +++ b/components/Header.js @@ -102,6 +102,6 @@ function updateHeaderHeight () { if (window) { const headerElement = document.getElementById('header') console.log(headerElement, window.innerHeight) - headerElement.style.setProperty('height', window.innerHeight + 'px') + headerElement?.style?.setProperty('height', window.innerHeight + 'px') } }