Check the website here.
Clone this project with:
$ git clone https://github.com/storyblok/gridsome-multilanguage-website.git
$ yarn # or npm install
To configure the Storyblok client we have to change the access Token, to get the token you need a Storyblok account, now that you have the token, we will go to the gridsome.config.js
file and change the token, the file is at the root of the project:
// in gridsome.config.js
module.exports = {
siteName: 'Gridsome Multilanguage Website',
plugins: [
{
use: 'gridsome-source-storyblok',
options: {
client: {
accessToken: '<Your_Access_Token_Here>'
},
version: 'published',
downloadImages: true,
imageDirectory: 'assets/images',
types: {
story: {
params: {
resolve_relations: 'blog-post.next_post'
}
}
}
}
}
],
}
For more information about our Gridsome plugin, visit the Github repository.
$ yarn develop # or npm run develop
$ yarn build # or npm run build
See how to set up your location here.
To duplicate this project in your Storyblok account, follow this instructions:
- Create a Storyblok account (if you don't have one)
- Call this URL (It will create a space in your account with all stories and some settings from this project)
- Setup the preview URL
- Configure the token that you want to use