mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-25 19:53:21 +02:00
Rename slug field
This commit is contained in:
@@ -10,7 +10,8 @@ const onCreateNode = ({ node, actions, getNode }) => {
|
||||
fmImagesToRelative(node);
|
||||
|
||||
if (node.internal.type === 'MarkdownRemark') {
|
||||
if (typeof node.frontmatter.path !== 'undefined') {
|
||||
console.log(node.frontmatter);
|
||||
if (typeof node.frontmatter.slug !== 'undefined') {
|
||||
createNodeField({
|
||||
node,
|
||||
name: 'slug',
|
||||
|
Reference in New Issue
Block a user