mikefowler / gatsby-plugin-collections

Create pages, with support for pagination and customizable permalinks, from a folder of Markdown files.
MIT License
11 stars 3 forks source link

Does not create a "collections" page #7

Open jsl15c opened 5 years ago

jsl15c commented 5 years ago

Perhaps I've misunderstood the purpose of this plugin, but my expectation is that it creates a page for the parent directory of a set of markdown files.

My config is as follows:

{
      resolve: 'gatsby-plugin-collections',
      options: {
        collections: [{
          name: 'blog-posts',
          path: 'content/blog',
          permalink: ':collection/:title',
          template: `${__dirname}/src/templates/post.js`
        }],
      },
    }

I'm pretty new to graphql and gatsby so please help me understand!