Skip to content

Instantly share code, notes, and snippets.

@WesleyDRobinson
Last active August 16, 2018 22:23
Show Gist options
  • Save WesleyDRobinson/555b4f39cd2a8572ba503cfe93065c39 to your computer and use it in GitHub Desktop.
Save WesleyDRobinson/555b4f39cd2a8572ba503cfe93065c39 to your computer and use it in GitHub Desktop.
Make a new blog

yarn global add gatsby-cli

wait ~1 min

gatsby new gatsby-blog https://github.com/gatsbyjs/gatsby-starter-blog

wait ~2 min

cd gatsby-blog && gatsby develop

Open localhost:8000

Edit in src/pages with live updates, hot reloads, the works!

folder
|
|__page0
|
|__folder 2
|  |__pageA
|
|__folder 3
   |__pageB

Generates URL paths as we want! /folder/page0, /folder/folder2/pageA, folder/folder3/pageB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment