Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gatsby-transformer-remark): remove unused _PARENT field from frontmatter #10919

Merged
merged 1 commit into from
Jan 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove _PARENT field from frontmatter
  • Loading branch information
stefanprobst committed Jan 8, 2019
commit 681c46a950224dc0ea1d28ce059da904f06f02e8
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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