Skip to content

smashingmagazine/smashing-ssg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Custom mini Static Site generator

This is from my Smashing magazine article on creating your own SSG For full details on creating this, read the article.

Installation

To get the site up and running:

cd site
npm install
npm run dev

To get the Studio up and running:

  1. Install the Sanity CLI
npm install -g @sanity/cli
  1. Connect /studio/ to your Sanity account and project
cd studio
sanity init
  1. Install and serve
npm install
sanity start
  1. 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

Want a 1-click installer? This Starter link will give you the code, initialize the Studio, and deploy both to Netlify.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.0%
  • HTML 15.0%