From 0338cd28443c1f21d9131e93e45cb4c29d1f5914 Mon Sep 17 00:00:00 2001 From: alxshelepenok Date: Tue, 13 Nov 2018 00:28:02 +0300 Subject: [PATCH] Update on-create-node.js --- gatsby/on-create-node.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gatsby/on-create-node.js b/gatsby/on-create-node.js index a51d00c..49807d3 100644 --- a/gatsby/on-create-node.js +++ b/gatsby/on-create-node.js @@ -10,7 +10,6 @@ const onCreateNode = ({ node, actions, getNode }) => { fmImagesToRelative(node); if (node.internal.type === 'MarkdownRemark') { - console.log(node.frontmatter); if (typeof node.frontmatter.slug !== 'undefined') { createNodeField({ node, @@ -20,9 +19,9 @@ const onCreateNode = ({ node, actions, getNode }) => { } else { const value = createFilePath({ node, getNode }); createNodeField({ - name: 'slug', node, - value, + name: 'slug', + value }); }