Skip to content

A gatsby plugin to change file paths in your markdown files to Gatsby-friendly paths when using Netlify CMS to edit them.

Notifications You must be signed in to change notification settings

hmbrg/gatsby-plugin-netlify-cms-paths

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatsby-plugin-netlify-cms-paths

A gatsby plugin to change file paths in your markdown files to Gatsby-friendly paths when using Netlify CMS to edit them.

Installation

With npm:

npm install --save gatsby-plugin-netlify-cms-paths

With Yarn:

yarn add gatsby-plugin-netlify-cms-paths

Usage

In your gatsby-config.js file:

module.exports = {
  plugins: [

    // Including in your Gatsby plugins will transform any paths in your frontmatter
    `gatsby-plugin-netlify-cms-paths`,

    // Including in your Remark plugins will transform any paths in your markdown body
    {
      resolve: `gatsby-transformer-remark`,
      options: {
        plugins: [
          `gatsby-plugin-netlify-cms-paths`,
        ],
      },
    },

  ],
}

Plugin Options

module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-netlify-cms-paths`,
      options: {
        // Path to your Netlify CMS config file
        cmsConfig: `/static/admin/config.yml`
      }
    }
  ]
}

About

A gatsby plugin to change file paths in your markdown files to Gatsby-friendly paths when using Netlify CMS to edit them.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%