top | item 21557974

How to Build a Blog with Gatsby and Netlify

62 points| codespot | 6 years ago |codespot.org | reply

12 comments

order
[+] omarhaneef|6 years ago|reply
It amazes me that these things are not as easy as Medium or Blogger or Wordpress.

There should be a Digital Ocean script that sets up a basic personal blog on Github pages/Gitlab pages/Netlify. The server let’s me pick a theme, a host, I set up the blog.

I never know if the static pages use Gatsby or Hugo or Jekyll or Pelican.

Use of a CLI would be strictly optional. It might even give me the option of porting my pages, posts and structure from one vendor to another.

[+] fiftyacorn|6 years ago|reply
The other problem I have is the lack of themes. You spinup WP and have access to a load of themes, but not with Gatsby.

Its not to say it wont get there - but I dont have the time to be writing my own themes

[+] marc_io|6 years ago|reply
The closest solution to what you described in my opinion is Publii, which is open source and works very well with many static hosts. The whole process outlined in the article is very complicated and utterly unnecessary if you are not a developer and just want to publish a simple blog or site.
[+] npinsker|6 years ago|reply
I recently wanted to do a small project in React and found this site: https://reactjs.org/docs/add-react-to-a-website.html. It was a painless, plug-and-play solution that got me coding within 3 minutes. I didn't need any data from external APIs. Obviously Gatsby would have been overkill here -- but that left me wondering why anyone would use Gatsby at all, since it's billed as "the static React site generator", and I had done that easily without it.

This tutorial is appropriately concise and answered my question perfectly: Gatsby's main use case seems to be when you want to repeatedly generate a static site dependent on some data source changing (e.g. blogs, online stores, etc.)

[+] trufas|6 years ago|reply
The main advantage is Gatsby pregenerates the initial markup for your website, so it loads faster and can work OK without JS. That example from the React docs has to load the JS bundle before showing any content and won't render at all if Javscript is disabled
[+] theflyinghorse|6 years ago|reply
Thank you, that's precisely what I've been looking for but have not been able to put into a google search!
[+] sneak|6 years ago|reply
Don’t forget to set GATSBY_TELEMETRY_DISABLED=1 in your environment.
[+] kissgyorgy|6 years ago|reply
Just click around that site and notice how crazy FAST it is!