Skip to content
This repository was archived by the owner on Oct 5, 2026. It is now read-only.
storyblokPublic archive

About

The Github Repository for the Storyblok tutorials

Resources

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Warning

This repository is no longer maintained.

Quickstart for Storyblok



Try it out!

# 1. Install the Storyblok CLI
$ npm install storyblok -g

# 2. Go through the quickstart
$ storyblok quickstart

# 3. Fire up your dev environment
$ cd ./project && npm i && npm run dev

Commands

In the background we're using gulp so you can change all the commands below and adopt them to your need.

# Start you local dev environment on port 4440
$ npm run dev

# Build static assets (styles, scripts)
$ npm run build

# Sync your current state on the dev environment
$ npm run deploy:dev

# Sync your current state on the live environment
$ npm run deploy:live

Frequently Ask Questions

How can I load stories to create an overview for (news|articles|projects|...):

You can simply use following snippet to load all the stories from a specific folder according to the folder's slug like:

{% set newsitems from stories starts_with:'news', per_page: 3 %}
{% for news in newsitems.data %}
    {{ news.name }}
{% endfor %}

I used the Weblink/Storylink field type - How can I get the link in the template?

You will receive the actual path by using the url filter:

{{ blok.your_field_key | url }} <!-- Outputs a link, giving a link object -->

I uploaded a static file in the views/assets folder how can I reference that?

We've prepared the asset_url filter for that:

{{ 'assets/js/scripts.js' | asset_url }} <!-- Outputs the theme url -->

Is there a full documentation about those filters and other possibilities?

Sure! You can find them right here:



Storyblok Logo

About

The Github Repository for the Storyblok tutorials

Resources

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages