Skip to content

Commit

Permalink
Fix reference to node contentDigest
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Kissling committed Jun 13, 2017
1 parent 43a9134 commit afeea58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby-remark-copy-linked-files/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ module.exports = ({ files, markdownNode, markdownAST, getNode }) => {
const newPath = path.join(
process.cwd(),
`public`,
`${linkNode.contentDigest}.${linkNode.extension}`
`${linkNode.internal.contentDigest}.${linkNode.extension}`
)
const relativePath = path.join(
`/${linkNode.contentDigest}.${linkNode.extension}`
`/${linkNode.internal.contentDigest}.${linkNode.extension}`
)
link.url = `${relativePath}`
if (!fsExtra.existsSync(newPath)) {
Expand Down

0 comments on commit afeea58

Please sign in to comment.