3 ms·
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
by nathan_f77 9y ago
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 your site when you git push. I also use the Netlify nameservers for many of my domains, and it's really easy to set up SSL with Let's Encrypt. I can buy a domain on Namecheap, and have a new blog or landing page deployed in less than 5 minutes.
* https://gohugo.io/ https://gohugo.io/
* https://gitlab.com/ https://gitlab.com/
* https://www.netlify.com/ https://www.netlify.com/
- andrei_says_ 9y agoIs it possible to use scss and slim with Hugo? Does it support partials, an equivalent of liquid, investing data files? These are the things that keep me with Jekyll and middleman.
- nathan_f77 9y agoIt doesn't look like Hugo supports scss, so you need to use gulp for that: http://danbahrami.io/articles/building-a-production-website-with-hugo-and-gulp-js/ http://danbahrami.io/articles/building-a-production-website-... You can run "gulp watch" to compile the files into /static, and Hugo's live reloading will pick up the changes. I can't find anything about slim templates. "Hugo uses Go’s html/template and text/template libraries as the basis for the templating.": https://gohugo.io/templates/introduction/ https://gohugo.io/templates/introduction/ It does support partials, and the go templates are similar to liquid. I honestly don't do much to customize Hugo, I just pick a theme, tweak the CSS, and write some blog posts. If you have a Jekyll blog with a lot of custom Ruby, then it might be difficult to switch.
- andrei_says_ 9y agoThank you. I think I’ll remain with Jekyll and middleman for now as I am quite familiar with both.
- seanwilson 9y agoHow 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") }}?
- joncalhoun 9y agoA 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.
- dhruvkar 9y agohttps://gohugohq.com/howto/compare-date-strings-in-hugo/ 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.
- alwillis 9y agoAnyone 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-engineering/2017/12/4/hows-progress-on-ruby-3x3 https://appfolio-engineering.squarespace.com/appfolio-engine...