Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brob/smashing-ssg
https://github.com/brob/smashing-ssg
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/brob/smashing-ssg
- Owner: brob
- Created: 2020-09-14T13:58:05.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T08:35:30.000Z (about 1 year ago)
- Last Synced: 2024-11-07T00:29:10.103Z (2 months ago)
- Language: JavaScript
- Size: 208 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom mini Static Site generator
This is from my [Smashing magazine article on creating your own SSG](https://smashingmag.com) For full details on creating this, read the article.
## Installation
To get the site up and running:
```bash
cd site
npm install
npm run dev
```To get the Studio up and running:
1. Install the Sanity CLI
```bash
npm install -g @sanity/cli
```2. Connect `/studio/` to your Sanity account and project
```bash
cd studio
sanity init
```3. Install and serve
```bash
npm install
sanity start
```4. Connect your Sanity project to the site by opening `/site/utils/SanityClient.js` and replacing `projectId` and `dataset` with the correct information created by the Sanity CLI.
## Install from [sanity.io/create](https://www.sanity.io/create?template=brob/sanity-template-pure-html)
Want a 1-click installer? [This Starter link](https://www.sanity.io/create?template=brob/sanity-template-pure-html) will give you the code, initialize the Studio, and deploy both to Netlify.