Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rodik-dev/develop-vanilla-jekyll-sanity-sbpull
Jamstack site created with Stackbit
https://github.com/rodik-dev/develop-vanilla-jekyll-sanity-sbpull
headless jamstack jekyll sanity ssg stackbit static
Last synced: 2 days ago
JSON representation
Jamstack site created with Stackbit
- Host: GitHub
- URL: https://github.com/rodik-dev/develop-vanilla-jekyll-sanity-sbpull
- Owner: rodik-dev
- License: other
- Created: 2021-05-06T15:48:24.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-06-24T07:38:51.000Z (over 3 years ago)
- Last Synced: 2024-11-10T21:42:22.766Z (2 months ago)
- Topics: headless, jamstack, jekyll, sanity, ssg, stackbit, static
- Language: JavaScript
- Homepage: https://jamstack.new
- Size: 974 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ✨ develop-vanilla-jekyll-sanity-sbpull ✨
This is a [Jekyll](https://jekyllrb.com) site using [Sanity](https://www.sanity.io) as a [CMS](https://en.wikipedia.org/wiki/Content_management_system). It was created with [Stackbit](https://www.stackbit.com?utm_source=project-readme&utm_medium=referral&utm_campaign=user_themes) in under a minute.
You can [create a site](https://app.stackbit.com/create?theme=https://github.com/stackbit-themes/vanilla-unibit&utm_source=project-readme&utm_medium=referral&utm_campaign=user_themes) just like this one, or explore some variations. How about a different:
🎨 Look
✏️ CMS
⚙️ Static site generator
## Develop Locally
1. Install a full [Ruby development environment](https://jekyllrb.com/docs/installation/)
1. Install Jekyll and Bundler:
gem install jekyll bundler
1. Install dependencies from Gemfile:
bundle install
1. Get "stackbit-deploy (Read+Write)" API token from your [Sanity management console](https://manage.sanity.io/projects/cslmqwud/settings/api)
1. Assign this access token to the `SANITY_ACCESS_TOKEN` environment variable:
export SANITY_ACCESS_TOKEN={sanity_read_write_api_token}
1. Run the following command to fetch the content from Sanity:
npx @stackbit/sanity-pull --ssg jekyll --sanity-project-id cslmqwud --sanity-token $SANITY_ACCESS_TOKEN
1. [Optional] Run Sanity Studio locally: install sanity-cli `npm install -g @sanity/cli`, navigate to the `/studio` directory, and run `sanity install` and `sanity start`.
You may be required to login with the Sanity CLI.
1. Build the site and start the Jekyll local development server
bundle exec jekyll serve --livereload
1. Open [http://localhost:4000](http://localhost:4000) in the browser
1. 🎉
## Editing Content
To start editing your site, you can use the Sanity interface at https://develop-vanilla-jekyll-sanity-sbpull-40f9d.sanity.studio/.
Alternatively, you can use the free on-page editing experience provided by the [Stackbit Studio](https://stackbit.com?utm_source=project-readme&utm_medium=referral&utm_campaign=user_themes).
[![](https://i3.ytimg.com/vi/zd9lGRLVDm4/hqdefault.jpg)](https://stackbit.link/project-readme-lead-video)
Here's a few resources to get you started:
- 📺 [Editing Content](https://stackbit.link/project-readme-editing-video)
- 📺 [Adding, Reordering and Deleting Items](https://stackbit.link/project-readme-adding-video)
- 📺 [Collaboration](https://stackbit.link/project-readme-collaboration-video)
- 📺 [Publishing](https://stackbit.link/project-readme-publishing-video)
- 📚 [Stackbit Documentation](https://stackbit.link/project-readme-documentation)
If you need a hand, make sure to check the [Stackbit support page](https://stackbit.link/project-readme-support).
## Colophon
Generated at `2021-05-06T15:48:24.341Z` by Stackbit version `0.3.52-develop.0`.