gatsby-plugin-netlify-cms-paths

1.3.0 • Public • Published

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`
      }
    }
  ]
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.3.0202latest

Version History

VersionDownloads (Last 7 Days)Published
1.3.0202
1.2.20
1.2.10
1.2.00
1.1.00
1.0.20
1.0.10

Package Sidebar

Install

npm i gatsby-plugin-netlify-cms-paths

Weekly Downloads

202

Version

1.3.0

License

MIT

Unpacked Size

23.8 kB

Total Files

15

Last publish

Collaborators

  • amadoa
  • dalewray
  • codevelopit
  • mastaaaron
  • escasports
  • tbaustin
  • ken85rose