Skip to content

Commit 9ab2a14

Browse files
author
Taylor Griffith
committed
require img
1 parent dce2245 commit 9ab2a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/containers/Post.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default withRouteData(({ post }) => (
99
<br />
1010
<h3>{post.data.title}</h3>
1111
<Moment format="MMMM Do, YYYY">{post.data.date}</Moment>
12-
<img className="image" src={`../images/uploads/${post.data.thumbnail}`} alt="" />
12+
<img className="image" src={require(`../images/uploads/${post.data.thumbnail}`)} alt="" />
1313
<p dangerouslySetInnerHTML={{ __html: post.content }} />
1414
</div>
1515
))

0 commit comments

Comments
 (0)