mdvanes / mdworld-jackson

mdworld theme "Jackson"
https://mdvanes.github.io/mdworld-jackson
MIT License
0 stars 0 forks source link

Do not set ./cover/image.png as path #21

Closed mdvanes closed 6 years ago

mdvanes commented 6 years ago

https://github.com/mdvanes/mdworld-jackson/blob/8977574aba56643cf0da1f11e5ac643a30e22d9f/gatsby-node.js#L99

because on the post page, it does not resolve, e.g. https://mdworld.nl/site-updated/cover/1573bdd328cdab4afbc80a8a38f582bcb07880d6.png

In fact, just use /cover/image.png because an URL starting with / is prefixed with a root path in the PostCover component.

This does build to be run with gatsby build --prefix-paths see https://www.gatsbyjs.org/docs/path-prefix/