A static blog site generated with Gatsby, filled with posts from Contentful.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
static
.env.example
.gitignore
.prettierrc
LICENSE
README.md
gatsby-config.js
gatsby-node.js
package-lock.json
package.json
postcss.config.js
tailwind.js

README.md

Nathan Heffley's Gatsby Blog

You'll need to create the .env.development and .env.production files by copying .env.example and providing the ID and access code to your Contentful space which has a BlogPost content type.

Gatsby will try loading title, slug, description, githubUrl, and content fields from your blog posts, so you should define those fields on your content type.

Then navigate into the blog's directory and start it up in development mode to test it out.

gatsby develop

To build the site, simply run the build command.

gatsby build

Then you can put the files generated in the public directory onto a static site host, or serve them locally with Gatsby.

gatsby serve

Hosting

If you're interested, I wrote a post about how I host this blog for free.

License

This project is licensed under the MIT License. See the LICENSE file for more details.