Live data from Hacker News

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

news.ycombinator.com

81–90 of 98 posts

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

#81
> I want to build something in which I have total control

It is really trivial to build your own for a simple blog site. I like this approach as the toolchain develops alongside the site!

Jinja2 templates, simple Python build script. That way you can write your content in whatever format you like! To deploy just use a bash script. On Github pages you can just git push of course.

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

#83

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") }}?

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

#84
I started with Jekyll which had tons of freely available themes (no link) then went on to Hexo but it was slow ( https://100dayz.js.org ) compared to my next one Hugo (no link again) but Hugo was the fastest to generate since its made in Go. Then I used different documentation generator like Docute ( https://datastructures.js.org ) & Docsify, etc...

Then now. Personal opinion but I love Gatsby ( https://www.gatsbyjs.org ). For me, it is the best static site generator out there. Yes more than static site generator as it is a PWA by default. It is infinitely scalable. It prefetches content before its loaded (think about this as you get the data of Previous Blog Post & Next Blog Post when you are on the Current Blog Post). Its so fast that you will actually feel the speed. Also, with little efforts you can make it work offline too.

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

#85

Hugo plus forestry.io for anything that needs to be edited by non developers. Publii for a quick and simple blog only.

Happy to hear that! We (forestry.io) would love any feedback you might have.

hello -- forestry.io looks great, but I had a big problem with it -- there is no support for MathJax within my markdown posts. I had math equations within double-dollar signs and the forestry.io editor removed them, making my math-based post render badly. Looks like there is no support for MathJax. I find it hard to see why forestry.io should mess with the MathJax in my markdown file -- why not leave it as raw text that I can edit?

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

#90
I rolled my own because I had unreasonable expectations:

* Cost almost nothing even if massive traffic (I wish)

* Infinate scaling

* No markdown, just html

* Post from browser, no publishing utils

* No web server

* No database

* Important plugins - comments, social media, email list

* Templates (eventually)

Built with jquery, S3, Cloudfront

Finished but not tested, demo at https://jamackinnon.com

Post reply on HN