diff --git a/src/components/PostList.js b/src/components/PostList.js index aff7b01..50ce3df 100644 --- a/src/components/PostList.js +++ b/src/components/PostList.js @@ -12,12 +12,29 @@ export default class PostList extends React.Component {

{title}

{posts.map(({ node: post }) => ( - + {post.featured_media && post.featured_media.localFile && (
- + {post.featured_media.localFile.childImageSharp ? ( + + ) : ( + {post.featured_media.caption + )}
)}