Skip to content

Commit 9ad636b

Browse files
committed
fix images on build in blog
1 parent cede771 commit 9ad636b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/homepage/src/pages/blog.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const Info = ({ post, mobile, ...props }) => (
4040

4141
const Blog = ({ data: { allFeedMediumBlog, allMarkdownRemark } }) => {
4242
const posts = makeFeed(allFeedMediumBlog, allMarkdownRemark);
43+
4344
return (
4445
<Layout>
4546
<PageContainer width={1440}>
@@ -57,8 +58,10 @@ const Blog = ({ data: { allFeedMediumBlog, allMarkdownRemark } }) => {
5758
{posts.map(post => (
5859
<Wrapper key={post.id}>
5960
<Info post={post} />
60-
<Posts key={post.id}>
61-
<Thumbnail src={post.src} width="340" alt={post.title} />
61+
<Posts>
62+
{post.src && (
63+
<Thumbnail src={post.src} width="340" alt={post.title} />
64+
)}
6265
<div>
6366
<Link
6467
css={`

0 commit comments

Comments
 (0)