cd gridsome-starter-buttercms
npm install
- Create a free account on ButterCMS - https://buttercms.com/.
- Copy and save off your read API token from the welcome screen or Profile >> settings (it looks like this: a985f3f782f2005...)
- Create and publish a new
customer_case_study
page type in your ButterCMS account by following simple steps https://buttercms.com/docs/api-client/gridsome#PagesPageType
3. In gridsome.config.js, replace the auth token placeholder <your_token> with the read API token from your ButterCMS account
module.exports = {
siteName: 'Gridsome',
plugins: [
{
use: 'gridsome-source-buttercms',
options: {
authToken: '<your_token>', // change to your read API token
collections: [''],
pages: '',
pageTypes: 'customer_case_study'
}
}
]
}
npm run develop
ButterCMS can be used as a gridsome cms and gridsome blog engine. This starter project demonstrates how to use Butter with Gridsome.