We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dce2245 commit 9ab2a14Copy full SHA for 9ab2a14
src/containers/Post.js
@@ -9,7 +9,7 @@ export default withRouteData(({ post }) => (
9
<br />
10
<h3>{post.data.title}</h3>
11
<Moment format="MMMM Do, YYYY">{post.data.date}</Moment>
12
- <img className="image" src={`../images/uploads/${post.data.thumbnail}`} alt="" />
+ <img className="image" src={require(`../images/uploads/${post.data.thumbnail}`)} alt="" />
13
<p dangerouslySetInnerHTML={{ __html: post.content }} />
14
</div>
15
))
0 commit comments