News for hackers. Stuff that matters.
Re:Ask HN: Best Static Site Builder? by nickjj on Saturday November 23, 2019 @04:28PM (#21616690)
I'm a big fan of Jekyll. I've been using it for ~5 years and just made a new site with it recently so I would still use it today.

I currently use it for:

- My personal blog with 250+ posts and tons of pages[0]

- A podcast platform[1] which is open source[2]

- The landing pages for all of my web development courses (not going to bother linking them since I don't want to seem like I'm fishing HN for sales)

I also recently wrote about my whole site's tech stack here[3]. That post might not fully apply to you since you want to host it on S3. I personally self host everything on DigitalOcean but using S3 wouldn't be a problem.

You mentioned "static assets" and this is where Jekyll shines IMO. The jekyll-assets plugin (optional) will md5 tag your assets for cache busting and bundle your scss / JS too. It's really handy and avoids having to set up more complicated tools. It pretty much works out of the box with close to zero configuration.

The plugin system is nice too. You can do some really useful things like automatically add certain rel attributes to external links with a few dozen lines of Ruby. It's very handy for a blog.

[0]: https://nickjanetakis.com/

[1]: https://runninginproduction.com/

[2]: https://github.com/nickjj/runninginproduction.com

[3]: https://runninginproduction.com/interviews/1-100k-page-views...

Re:Ask HN: Best Static Site Builder? by sailfast on Saturday November 23, 2019 @07:50PM (#21617624)
I’d second Jekyll because it’s easy to get hosted on GitHub pages with a custom domain, or just a .io default. A no-brainer for low maintenance pages with easy Markdown updates in my opinion. Also nice to know it will be supported by that group since it powers so many pages.

The markdown authoring experience is also one that I really love, personally, which is an added bonus.

Re:Ask HN: Best Static Site Builder? by sharcerer on Saturday November 23, 2019 @11:07PM (#21618288)
Isn't Jekyll slow for a lot of blog posts? Also,adding all those plugins for everything must slow it down. Asking you since you have 250+ posts. I had read this in a Hugo vs Jekyll comparison and picked Hugo.

Btw, checkout https://www.stackbit.com/. really good.

Re:Ask HN: Best Static Site Builder? by nickjj on Sunday November 24, 2019 @07:54AM (#21620124)
> Isn't Jekyll slow for a lot of blog posts?

I haven't noticed it, otherwise I would have for sure switched by now. I have zero patience for slow downs like that.

I think it's only really slow if you make questionable decisions at the template level around tagging, categories and pagination where you could end up with deeply nested loops but you can avoid all of those problems without making compromises.

For every day writing, I run Jekyll with --incremental. Basically what this translates to is I can have my editor open and write a blog post with a browser next to it and every time I save the file it takes around 3-4 full seconds to auto-reload and see a live preview. Using --incremental only incrementally rebuilds what changed instead of everything.

This is in an absolute total worst case scenario environment too where I'm running Ruby directly inside of WSL1 and the code is mounted in from a non-SSD using an i5 3.2ghz quad core from 5 years ago. When WSL2 hits I wouldn't be surprised if it finishes in 1-2 seconds (or if you had MacOS / Linux now it would be faster too).

For builds (at deploy time) it takes around 20-30 seconds for Jekyll to create what it needs to create and push everything to my server using Ansible. This delay doesn't bother me because I run 1 command and let it do its thing while I do something else. I only run this a few times a week at most too.

Realistically 250+ posts isn't a ton but for a solo blogger it's sort of a decent amount. That was ~5 years worth of posting consistently.

But I think --incremental will save you no matter how big it gets for writing where you want a fast feedback loop.

Re:Ask HN: Best Static Site Builder? by PenguinCoder on Sunday November 24, 2019 @09:08AM (#21620504)
Your blog and content look great! What theme are you using for Jekyll?
Re:Ask HN: Best Static Site Builder? by nickjj on Sunday November 24, 2019 @09:41AM (#21620678)
Thank you.

I'm not using any Jekyll specific theme.

I started with a Bootstrap 3.x base and custom made it. I would have used Bootstrap 4.x but it wasn't out at the time.

When coming up with the design the main focus I had in mind was "minimal and readable".

Re:Ask HN: Best Static Site Builder? by busterarm on Sunday November 24, 2019 @05:00AM (#21619416)
I converted an extremely large marketing/news site of 5000+ articles (and growing) to Jekyll from Wordpress. Lots of custom-built plugins. Total build & deploy time start to finish is around 20 minutes, but about half of that is webpack doing its thing. I think the team responsible after I left has been able to speed things up to about 5 minutes, but can't confirm.

I've built a ton using both Jekyll and Hugo, and while that later is speedy, its templating is extremely inflexible. The more complicated your content and the things you try to do with it, the more grim things look for it.

Re:Ask HN: Best Static Site Builder? by forgot-my-pw on Monday November 25, 2019 @02:11PM (#21631605)
Jekyll has nicer templating, but when you work on large website, Hugo is just much faster.

Bootstrap team is moving their docs to Hugo: https://blog.getbootstrap.com/2019/02/11/bootstrap-4-3-0/#br...

Re:Ask HN: Best Static Site Builder? by busterarm on Tuesday November 26, 2019 @11:43AM (#21639929)
I thought my post made it clear that I was both aware of that and built one of the largest Jekyll sites on the internet.

I'd link the damn thing but I don't want to dox myself.

Re:Ask HN: Best Static Site Builder? by forgot-my-pw on Wednesday November 27, 2019 @03:50PM (#21651984)
I was agreeing with you.
Re:Ask HN: Best Static Site Builder? by busterarm on Wednesday November 27, 2019 @11:29PM (#21654584)
Fair enough. Mea culpa.

I do want to stress though that in that case, Hugo's speed wasn't a positive enough tradeoff vs worse templating to switch.

We used both on a case by case basis there. A few dozen online properties. Hugo got used on the simplest stuff, often 4-5 page lead generation sites which is about 30% of what that company did. Speed of builds/deployment is basically the same there, but with Hugo the tooling/pipeline was much simpler.

Re:Ask HN: Best Static Site Builder? by zoul on Saturday November 23, 2019 @11:56PM (#21618449)
We have a newspaper with close to 1000 articles running on Jekyll. Site generation speed is low, but acceptable.
Re:Ask HN: Best Static Site Builder? by forgot-my-pw on Monday November 25, 2019 @02:04PM (#21631543)
> https://www.stackbit.com/

What's the pricing for this? There's no mention on the website

Re:Ask HN: Best Static Site Builder? by ohadpr on Wednesday November 27, 2019 @07:19PM (#21653573)
Hey, Stackbit founder here. Creating websites with Stackbit is and will continue being free. It has a low cost of operation for us and we find its an attractive way for people to experiment with static sites / the JAMstack.
Re:Ask HN: Best Static Site Builder? by sharcerer on Friday November 29, 2019 @03:23PM (#21666612)
A request. All those new upcoming Themes. Could you at least make a video demo of them(in case they're somewhat ready) if not the date of their release, so that I keep them in mind and wait for them? Hoping for a Christmas release
Re:Ask HN: Best Static Site Builder? by marc_io on Friday November 29, 2019 @01:30PM (#21665968)
Stackbit is awesome. I would love to see support for WordPress in the list of CMSs.
Re:Ask HN: Best Static Site Builder? by theSealedTanker on Saturday November 23, 2019 @11:43PM (#21618396)
we need more tmux videos from you.
Re:Ask HN: Best Static Site Builder? by nickthemagicman on Saturday November 23, 2019 @09:24PM (#21617972)
I liked Middleman. It seems like a more powerful Jekyll.