ButterCMS / gridsome-starter-buttercms-old

A starter template for spinning up a Gridsome + ButterCMS site
4 stars 4 forks source link

"Pages" not actually plural #4

Closed drewbitt closed 4 years ago

drewbitt commented 4 years ago

This isn't necessarily a bug in the starter, but a bug in the npm package for gridsome buttercms which isn't a repository afaik.

Defining "pages" in gridsome.config.js only allows for a single page. gridsome-source-buttercms

if (this.options.pages) {
   const page = await this.client.page.retrieve('*', this.options.pages)

buttercms

retrieve: function(page_type, page_slug, options) {
    return this._conn.get('pages/'+page_type+'/'+page_slug+'/', options)
  }

Single page only I would assume a list should be allowed for the pages property

drewbitt commented 4 years ago

My apologies, I swear I typed in the repository name before and didn't find it. I see it now.