function createMarkdownFileSlug(node, getNode, boundActionCreators)
{
    // check if the node is provided by the gatsby-transformer-remark plugin.
    if (node.internal.type === "MarkdownRemark")
    {
        // creates a slug from the file node.
        const slug = createFilePath({ node, getNode, basePath: `pages` });

        // add the slug as a custom field to the node.
        boundActionCreators.createNodeField({ node, name: `slug`, value: slug });
    }
}
/**
 * Creates a slug for a markdwon file.
 * @param {Object} node The gatsby node created by the transformer plugin.
 * @param {Function} getNode Api function to retrieve the internal node.
 * @param {Object} boundActionCreators Helper object.
 */
Creates a slug for a markdwon file.
@param {Object} node The gatsby node created by the transformer plugin.
@param {Function} getNode Api function to retrieve the internal node.
@param {Object} boundActionCreators Helper object.
Creates a slug for a markdwon file . @param { Object } node The gatsby node created by the transformer plugin . @param { Function } getNode Api function to retrieve the internal node . @param { Object } boundActionCreators Helper object .
function createMarkdownFileSlug(node, getNode, boundActionCreators)
{
    if (node.internal.type === "MarkdownRemark")
    {
        const slug = createFilePath({ node, getNode, basePath: `pages` });
        boundActionCreators.createNodeField({ node, name: `slug`, value: slug });
    }
}
function createMarkdownFileSlug ( node , getNode , boundActionCreators ) { if ( node . internal . type === "MarkdownRemark" ) { const slug = createFilePath ( { node , getNode , basePath : ` ` } ) ; boundActionCreators . createNodeField ( { node , name : ` ` , value : slug } ) ; } }
Creates a slug for a markdwon file.
Creates a slug for a markdwon file .
// check if the node is provided by the gatsby-transformer-remark plugin. // creates a slug from the file node. // add the slug as a custom field to the node.