Skip to content

Commit 8b00612

Browse files
Fix blog post error
1 parent 6a6ca58 commit 8b00612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/homepage/BlogPosts.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ const maxposts = 3;
2121
.sort((a, b) => b.data.publishDate.getTime() - a.data.publishDate.getTime())
2222
.slice(0,maxposts)
2323
.map((post) => {
24+
// Only pass props that match the expected Props interface
2425
return (
2526
<NEWBlogPostCard
2627
href={post.slug}
2728
title={post.data.title}
2829
description={post.data.description}
29-
author={post.data.author}
3030
publishDate={post.data.publishDate}
3131
cover={post.data.cover}
3232
coverAlt={post.data.coverAlt}

0 commit comments

Comments
 (0)