You'll probably need to generate a sitemap for your site, but feel free to remove this if you don't! Make sure to add the appropriate siteUrl
to gridsome.config.js. More complete documentation on the plugin can be found here.
Solid integration of FlexSearch.js with Gridsome. Flexsearch currently has limited support for search within nested data structures. In order to properly search Sanity's implementation of Portable Text blocks will have to be flattened and stored in a custom index for the time being. This is a top priority on the roadmap for this base theme.
More complete documentation on the plugin can be found here
- Add schema in studio/schemas/documents or studio/schemas/objects: https://www.sanity.io/docs/content-modelling
- Add your new schema to studio/schemas/schema.js
- Update studio/deskStructure.js making sure to add the name of your schema to hidden doc types if a document (optional)
- Add a template component for your new content in web/source/templates with the appropriate GraphQL query
- Add the template for your collection to gridsome.config.js: https://gridsome.org/docs/templates/
- Add the collection to flexsearch's configuration in gridsome.config.js: https://gridsome.org/plugins/gridsome-plugin-flexsearch
Link lists have been added to the starter theme in the form of
- Flatten portable text blocks for indexing
- Warn if siteUrl not set or prompt for siteUrl on installation
- Move this roadmap to a github project a la https://github.com/gridsome/gridsome/projects/2
- Implement page transitions
- Add test user access control to Sanity Studio: https://www.sanity.io/docs/access-control
Fully customizable blog template with a Vue.js front-end.
Deployed from sanity.io/create.
- A fast by default blog with Gridsome
- Structured content using Sanity.io
- Global deployment on Netlify
- Clone this repository
npm install
in the project root folder on localnpm run dev
to start the studio and frontend locally- Your studio should be running on http://localhost:3333
- Your frontend should be running on http://localhost:8080
npm run build
to build to production locally
- Go to your project’s API settings on manage.sanity.io and create a token with read rights.
- Rename
.env.development.tenplate
to.env.development
and paste in the token:SANITY_READ_TOKEN="yourTokenHere"
. - Restart the development server (
ctrl + C
andnpm run dev
).
If you want to turn off preview you can set watchMode: false
in gridsome-config.js. If you just want to preview published changes you can set overlayDrafts: false
in gridsome-config.js.
Netlify automatically deploys new changes commited to master on GitHub. If you want to change deployment branch, do so in build & deploy settings on Netlify.
This starter comes with a Netlify-widget that lets you trigger new deploys from Sanity Studio.
Join Sanity’s developer community or ping us on twitter.