Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Storyblok's Gridsome boilerplate (Moon-Theme) — a multilanguage static website starter pairing Gridsome with the Storyblok headless CMS.
The Gridsome Website by Storyblok is a boilerplate for a multilanguage static website, built on Gridsome (the Vue.js-powered static site generator) and connected to the Storyblok headless CMS as its content source.
The Gridsome Website by Storyblok, also known as Storyblok's Gridsome Boilerplate (Moon-Theme), is a starter project that pairs the Gridsome static site framework with the Storyblok headless CMS through the gridsome-source-storyblok plugin. Its core function is to give you a pre-configured, multilanguage website where pages, stories, and blog posts are authored in Storyblok and rendered as a static Gridsome site. The repository is published by Storyblok, runs on Node.js with Yarn or npm, and has a live demo at https://demo.storyblok.com/.
gridsome-source-storyblok, configured with version: 'published' so only published content is fetched.downloadImages: true downloads Storyblok assets locally into the assets/images directory.resolve_relations: 'blog-post.next_post', so blog posts can link to a "next post" within the CMS.yarn install or npm install, yarn develop, yarn build).blog-post.next_post relation and the site resolves them automatically.yarn or npm install.gridsome.config.js file under the gridsome-source-storyblok plugin options, in client.accessToken.yarn develop for local development, or yarn build to generate a static build.The source code lives in a public GitHub repository, so you can clone, fork, and modify it freely. The Storyblok CMS itself requires a separate account, and the free tier's limits apply when you connect your own space.
The project includes a multilanguage page structure and blog stories. When you duplicate the project through the Storyblok build URL, a space is created in your account containing all stories and some settings used by the site.
Generate an access token in Storyblok, open gridsome.config.js at the project root, and replace the token in the client.accessToken option under gridsome-source-storyblok. Then restart the development server.
Yes. The configuration sets downloadImages: true and imageDirectory: 'assets/images', so images from Storyblok are downloaded into the local project during the build instead of being hot-linked.
