Skip to content

Commit

Permalink
fix(gatsby-transformer-remark): remove unused _PARENT field from fron…
Browse files Browse the repository at this point in the history
…tmatter (#10919)
  • Loading branch information
stefanprobst authored and pieh committed Jan 8, 2019
1 parent c8128db commit e831b42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Expand Up @@ -7,15 +7,14 @@ Array [
"children": Array [],
"excerpt": "",
"frontmatter": Object {
"_PARENT": "whatever",
"date": "2017-09-18T23:19:51.246Z",
"title": "my little pony",
},
"id": "uuid-from-gatsby",
"internal": Object {
"content": "Where oh where is my little pony?
",
"contentDigest": "e33e9489dc1352bfac2577e99155c1b3",
"contentDigest": "26a9a60af333645b5ca69261c7d9aa53",
"type": "MarkdownRemark",
},
"parent": "whatever",
Expand All @@ -34,15 +33,14 @@ Array [
"children": Array [],
"excerpt": "",
"frontmatter": Object {
"_PARENT": "whatever",
"date": "2017-09-18T23:19:51.246Z",
"title": "my little pony",
},
"id": "uuid-from-gatsby",
"internal": Object {
"content": "Where oh where is my little pony?
",
"contentDigest": "e33e9489dc1352bfac2577e99155c1b3",
"contentDigest": "26a9a60af333645b5ca69261c7d9aa53",
"type": "MarkdownRemark",
},
"parent": "whatever",
Expand Down Expand Up @@ -79,7 +77,6 @@ In quis lectus sed eros efficitur luctus. Morbi tempor, nisl eget feugiat tincid
",
"frontmatter": Object {
"_PARENT": "whatever",
"date": "2017-09-18T23:19:51.246Z",
"title": "my little pony",
},
Expand All @@ -97,7 +94,7 @@ Sed eu gravida mauris. Suspendisse potenti. Praesent sit amet egestas mi, sed he
Sed bibendum sem iaculis, pellentesque leo sed, imperdiet ante. Sed consequat mattis dui nec pretium. Donec vel consectetur est. Nam sagittis, libero vitae pretium pharetra, velit est dignissim erat, at cursus quam massa vitae ligula. Suspendisse potenti. In hac habitasse platea dictumst. Donec sit amet finibus justo. Mauris ante dolor, pulvinar vitae feugiat eu, rhoncus nec diam. In ut accumsan diam, faucibus fringilla odio. Nunc id ultricies turpis. Quisque justo quam, tristique sit amet interdum quis, facilisis at mi. Fusce porttitor vel sem ut condimentum. Praesent at libero congue, vulputate elit ut, rhoncus erat.
",
"contentDigest": "e9f6c76d1bc3cb15f402ed2c24b815bd",
"contentDigest": "024ff0e6141e2121fe04090114c7535a",
"type": "MarkdownRemark",
},
"parent": "whatever",
Expand Down Expand Up @@ -130,7 +127,6 @@ In quis lectus sed eros efficitur luctus. Morbi tempor, nisl eget feugiat tincid
",
"frontmatter": Object {
"_PARENT": "whatever",
"date": "2017-09-18T23:19:51.246Z",
"title": "my little pony",
},
Expand All @@ -148,7 +144,7 @@ Sed eu gravida mauris. Suspendisse potenti. Praesent sit amet egestas mi, sed he
Sed bibendum sem iaculis, pellentesque leo sed, imperdiet ante. Sed consequat mattis dui nec pretium. Donec vel consectetur est. Nam sagittis, libero vitae pretium pharetra, velit est dignissim erat, at cursus quam massa vitae ligula. Suspendisse potenti. In hac habitasse platea dictumst. Donec sit amet finibus justo. Mauris ante dolor, pulvinar vitae feugiat eu, rhoncus nec diam. In ut accumsan diam, faucibus fringilla odio. Nunc id ultricies turpis. Quisque justo quam, tristique sit amet interdum quis, facilisis at mi. Fusce porttitor vel sem ut condimentum. Praesent at libero congue, vulputate elit ut, rhoncus erat.
",
"contentDigest": "e9f6c76d1bc3cb15f402ed2c24b815bd",
"contentDigest": "024ff0e6141e2121fe04090114c7535a",
"type": "MarkdownRemark",
},
"parent": "whatever",
Expand Down
1 change: 0 additions & 1 deletion packages/gatsby-transformer-remark/src/on-node-create.js
Expand Up @@ -45,7 +45,6 @@ module.exports = async function onCreateNode(
markdownNode.frontmatter = {
title: ``, // always include a title
...data.data,
_PARENT: node.id,
}

markdownNode.excerpt = data.excerpt
Expand Down

0 comments on commit e831b42

Please sign in to comment.