Made to save time getting a Gridsome project fired up. It's got my personal preferences, not really meant for the masses, but feel free to use it or make suggestions.
- Gridsome
- Netlify CMS
- SASS/SCSS
- POSTCSS
- Buefy - Bulma for Vue
- Gridsome Plugin Netlify CMS
- Gridsome Transformer Remark
- Gridsome Source Filesystem
- Gridsome Sitemap
- Gridsome Critical CSS
There's probably a few items missing from that list ^
To use this starter, follow these steps:
- Clone the repo.
- cd into folder.
- npm install.
- Replace default values that are outlined below.
- Setup Github Auth
- npm run dev.
- Happy Coding ๐
** gridsome.config.js **
-
siteName:
- The sitename that you want to use for this project.
-
siteUrl:
- The site URL
-
siteDescription:
- Default meta description.
** Plugins **
-
Gridsome Plugin Netlify CMS:
- publicPath: URL for your Netlify CMS login page
-
Gridsome Source Filesystem:
- path: The path to the folder that contains the markdown files for that content type.
- typeName: The name of your content type.
- remark: The remark plugins you want to use for that specific content type.
-
transformers.remark:
- Global remark plugins that you want to use.
-
Gridsome Critical CSS:
- options.paths: Array of paths to create critical css for.
- options.width: Width of viewport to use for determining what's above the fold.
- options.height: Height of viewport to use for determining what's above the fold.
** src/admin/config.yml **
This is where all of your netlify CMS config lives. Register your content types / collections here.
-
Backend:
- name: the backend type / name
- repo: the git repo
-
media_folder: /static/uploads where your media is stored
-
public_folder: /uploads where public files are stored
-
Collections:
- This is where you register your collections / content types. Follow the example provided in the file.
The best place to find information is going to be on the Gridsome Website. Information for the various plugins can be found there.