fix post?.

This commit is contained in:
tangly1024.com
2023-07-11 18:28:16 +08:00
parent 47b3fa28e9
commit bb6b2b3e1d
10 changed files with 14 additions and 18 deletions

View File

@@ -174,7 +174,7 @@ const LayoutSlug = props => {
</div>
</div>
{/* 上一篇下一篇文章 */}
{post.type === 'Post' && <ArticleAround prev={prev} next={next} />}
{post?.type === 'Post' && <ArticleAround prev={prev} next={next} />}
{/* 评论区 */}
<Comment frontMatter={post} />
</section>