Skip to content

Commit 43cd5e3

Browse files
Update apps/blog/web/lib/posts.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 42a9994 commit 43cd5e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/blog/web/lib/posts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function getAllPosts(): PostData[] {
5454
date: data.date || null,
5555
content,
5656
excerpt: data.excerpt || cleanContent.slice(0, 160) + '...',
57-
thumbnail: data.thumbnail,
57+
thumbnail: typeof data.thumbnail === 'string' ? data.thumbnail : undefined,
5858
});
5959
}
6060
}

0 commit comments

Comments
 (0)