News for hackers. Stuff that matters.
Re:Ask HN: Best Node.js static blog generator? by drinchev on Saturday February 04, 2017 @03:55AM (#13566294)
I'm using metalsmith [1]. It's quite "Do it yourself", but very flexible on the result.

1: http://metalsmith.io

Re:Ask HN: Best Node.js static blog generator? by gotofritz on Saturday February 04, 2017 @07:02AM (#13566690)
It's nice because simple, but the quality of the plugins and the documentation is not very good. You end up wasting a bit of time discovering how to do even simple stuff.

The nice thing is that you can easily knock together a plugin to do what you need

Re:Ask HN: Best Node.js static blog generator? by drinchev on Saturday February 04, 2017 @09:26AM (#13567064)
> The nice thing is that you can easily knock together a plugin to do what you need

Precisely. I guess one of the reasons why metalsmith doesn't have any pre-installed plugins is that. Fortunately with a combination of metalsmith & gulp you can do wonders and it's quite flexible, compared to any other `blackbox`-utility on the market.

Re:Ask HN: Best Node.js static blog generator? by wattt on Saturday February 04, 2017 @06:35AM (#13566631)
I second this!
Re:Ask HN: Best Node.js static blog generator? by whsheet on Saturday February 04, 2017 @02:46AM (#13566119)
I am also looking into this space and found https://www.staticgen.com/ quite helpful.

You can filter by language and then, you get Hexo, GitBook and Gatsby as the front runners for Javscript ranked by Github stars.

Re:Ask HN: Best Node.js static blog generator? by diegorbaquero on Saturday February 04, 2017 @02:00PM (#13568400)
Nice site! Has really helped me know what the "market" looks like. Thanks for sharing
Re:Ask HN: Best Node.js static blog generator? by tvjames on Saturday February 04, 2017 @05:08AM (#13566464)
Does it have to be node.js? Are you looking to expand your JS skills, or do you just want a decent static site generator? (If B, then hugo is awesome, and awesome fast)
Re:Ask HN: Best Node.js static blog generator? by diegorbaquero on Saturday February 04, 2017 @02:01PM (#13568405)
I want to be able to understand and modify if needed. Although I do program in other languages, I want to focus in NodeJS for now.
Re:Ask HN: Best Node.js static blog generator? by wattt on Saturday February 04, 2017 @06:38AM (#13566637)
If that is the case why not use Jekyll? It is the most popular thing out there that I am aware of.
Re:Ask HN: Best Node.js static blog generator? by itamarst on Saturday February 04, 2017 @07:43AM (#13566790)
Just pick the most popular one. The differences will be minor enough that what matters is documentation and support.
Re:Ask HN: Best Node.js static blog generator? by rattray on Saturday February 04, 2017 @02:37AM (#13566097)
Try Gatsby. Pretty full featured and works well. Also very easy to get up and running quickly.
Re:Ask HN: Best Node.js static blog generator? by whsheet on Saturday February 04, 2017 @02:50AM (#13566131)
While Gatsby looks good, I remember that the last time I looked at it Gatsby was always loading all blog posts. This isn't a problem for a small blog but with a blog with hundreds of posts this wouldn't be efficient. Plus there are some SEO issues because of its SPA nature. Are this issues still valid or did Gatsby changed in these regards?
Re:Ask HN: Best Node.js static blog generator? by rattray on Saturday February 04, 2017 @01:24PM (#13568174)
It's not SPA, it's static. You can load without any JS on the frontend if you want I believe.

Code splitting is an expected part of an upcoming 1.0 release I believe (may be misremembering)

Re:Ask HN: Best Node.js static blog generator? by aloisdg on Saturday February 04, 2017 @02:50AM (#13566130)
Hexo is by far the most popular. Easy to use, lot of themes, I really like it.
Re:Ask HN: Best Node.js static blog generator? by jorgthuijls on Saturday February 04, 2017 @04:43AM (#13566403)
Yeah hexo is pretty good
Re:Ask HN: Best Node.js static blog generator? by fariz_ on Saturday February 04, 2017 @02:49AM (#13566128)
Try phronomic.io, the front end use react.