Skip to content

Instantly share code, notes, and snippets.

👩‍🌾

Marguerite Roth margueriteroth

👩‍🌾
Block or report user

Report or block margueriteroth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gatsby-node.js
const path = require('path');
const { createFilePath } = require(`gatsby-source-filesystem`);
exports.onCreateNode = ({ node, getNode, actions }) => {
const { createNodeField } = actions;
if (node.internal.type === `MarkdownRemark`) {
const slug = createFilePath({
node,
getNode,
basePath: `posts` })
You can’t perform that action at this time.