Live data from Hacker News

Ask HN: What is setup for your static blog generator?

news.ycombinator.com

91–98 of 98 posts

Re: Ask HN: What is setup for your static blog generator?

#91

I use Hugo, GitLab, and Netlify for blogs and landing pages. I highly recommend this combination. Hugo is blazingly fast and very customizable. It's written in Go, so it compiles hundreds of blog posts in less than a second. My old Jekyll and Octopress blogs used to take a few minutes. Netlify is like Heroku for static sites. You can connect Netlify to GitLab (free private repos), and Netlify will build and deploy yo…

Anyone who’s been keeping up with Jekyll (3.7.2) and Ruby (2.5.0) releases has experienced fairly noticeable speed increases without having to change much of anything.

The goal is to have Ruby 3 run 3× faster than Ruby 2.0; Ruby 2.5.0 is at 165% of Ruby 2.0 right now: https://appfolio-engineering.squarespace.com/appfolio-engine...

Re: Ask HN: What is setup for your static blog generator?

#93
post #53

I'm very happy with using pelican for my blog: https://startuplab.io/blog It's very flexible, written in python, easy to customize, has plugins for any purpose. I've made a custom theme, configured pelican a bit, and served with nginx on digital ocean(but it could as well have been served for free on github pages). You can see the code and my custom theme here: https://github.com/raymestalez/startuplab

I moved to Pelican from WordPress last year and it's been great. I wish there were more resources around for it, though.

Re: Ask HN: What is setup for your static blog generator?

#95

I use Hugo, GitLab, and Netlify for blogs and landing pages. I highly recommend this combination. Hugo is blazingly fast and very customizable. It's written in Go, so it compiles hundreds of blog posts in less than a second. My old Jekyll and Octopress blogs used to take a few minutes. Netlify is like Heroku for static sites. You can connect Netlify to GitLab (free private repos), and Netlify will build and deploy yo…

How do you find the template syntax with Hugo? I love the speed of it over Jekyll but I find the Hugo syntax really unintuitive sometimes. For example why {{ if or (isset .Params "alt") (isset .Params "caption") }} and not {{ if (isset .Params "alt") or (isset .Params "caption") }}?

A lot of the syntax is a byproduct of the template packages shipped in Go.

I assume the ordering of or, if, etc is a byproduct of them being function calls, but I'd have to double check to verify. Regardless it's a little weird at first but you get used to it after a bit. I used a fair bit of customization on the www.calhoun.io theme and I didn't have to think twice about the order of terms after a short while.

Re: Ask HN: What is setup for your static blog generator?

#96

I use Jekyll for most of my blogs. For my company's, we needed multiple authors including non-technical people, so we couldn't use git for that. I recently discovered Ghost which I highly recommend: * https://ghost.org/ * Kickstarted in 2013 * Markdown-based * Open source, self-hostable * Hosted solution ( https://ghost.org/pricing/ ) with support for your own domain name * Beautiful themes out of the box with custom…

I've been using Ghost for a few years now, mostly because it interested me and looked nice to use. I've gone through a bunch of static blog generators and while they were cool (and cheap) I just really like the ability to login to my site, start drafting, have it auto-save and come back to it later. I'm not super fussed about having it version controlled, though I can export all my data (minus images) into a JSON format and version control that if I want.

I self host on the lowest Digital Ocean droplet which is now $5/mo and is plenty for my small time blog and I'm happy to pay $5/mo for the delight of using Ghost. Also with a cron job I can auto-update every few days and get the latest features without touching the box.

Ghost will auto-roll back if an update fails which is nice and I don't have that many viewers so if it goes down I don't mind so much right now.

A final bonus is that it uses handlebars for it's theme creation and rendering. I'm a node dev who uses handlebars for my own projects so editing my theme is a breeze.

Re: Ask HN: What is setup for your static blog generator?

#98

Earlier quoted context omitted.

How do you find the template syntax with Hugo? I love the speed of it over Jekyll but I find the Hugo syntax really unintuitive sometimes. For example why {{ if or (isset .Params "alt") (isset .Params "caption") }} and not {{ if (isset .Params "alt") or (isset .Params "caption") }}?

A lot of the syntax is a byproduct of the template packages shipped in Go. I assume the ordering of or, if, etc is a byproduct of them being function calls, but I'd have to double check to verify. Regardless it's a little weird at first but you get used to it after a bit. I used a fair bit of customization on the www.calhoun.io theme and I didn't have to think twice about the order of terms after a short while.

https://gohugohq.com/howto/compare-date-strings-in-hugo/

This was a useful site for deeper exploration into the syntax. Sometimes, it's just trial and error.

Post reply on HN