diff --git a/plugins/count-inline-code/gatsby-node.js b/plugins/count-inline-code/gatsby-node.js new file mode 100644 index 00000000..1dc15bf7 --- /dev/null +++ b/plugins/count-inline-code/gatsby-node.js @@ -0,0 +1,9 @@ +exports.createSchemaCustomization = ({ actions }) => { + const { createTypes } = actions; + const typeDefs = ` + type MarkdownRemarkFields implements Node { + inlineCount: Int + } + `; + createTypes(typeDefs); +};