A minimal & somewhat opinionated Gatsby boilerplate.
Basic setup of Gatsby with Forestry.
To get your own version, click the button below.
For making sure you have everything you need installed, check out the Gatsby beginner tutorial here.
After cloning the repo, open your terminal and cd
to the directory and run yarn
.
This will install all the dependencies for the project.
Once that is done, get the site running and live-reloading by running gatsby develop
.
You're good to go! Your site will be at http://localhost:8000/.
I like keeping all my content for dynamic pages in the same place, in this case this is in src/content
.
Within there it's pretty straightforward, posts folder is where blog posts are, about is a single file, etc. Hopefully it's enough of an example to do whatever you want.
These are all directly hooked up to Forestry and can be edited there.
In order to have that wonderful gatsby-img loading, this starter is using the gatsby-remark-relative-images
package. Storing all assets in static/assets/media. This is
- For other Gatsby commands look here.
- I also strongly recommended the Gatsby tutorial here.
- For Forestry stuff, check out their docs here.
- If using Netlify to host your site, simply commit to your site and it will rebuild.
- If using Github pages, follow the guide here.
Setup and examples of normal pages, and dynamic pages generated from markdown files (in src/pages/content).