Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I really tried hugo, but I gave up because of hugo's many annoyances --- breaking changes in versions a mere few months apart (why????), yet another arbitrary templating system, poor support for org-mode out of the box, lots of impedance mismatch with ox-hugo (a valiant effort), runs a local server for local development, injects javascript for live refresh, etc...

Don't get me wrong, it is a really nice project which I do recommend to people who don't want to go down the path of writing their own custom site maker... The single-binary formula allows hugo to offer a much better set of trade-offs than the competition.

But... if you can write your own, write your own. It is a glorious yak shave.

My only tip will be to avoid all dependencies like the plague. For stability and sanity.

The upshot... After over two years of using my dinky-ass handmade pandoc-usin' (not even parallelised) static site maker, I feel hugo is not even as fast as what I have.



> breaking changes

Yeah, that's bitten me and it's super stupid. At this point, I've just pinned hugo so I don't update it any more. It's a friggin' static site with basically no Javascript (just a little for the site search feature—handled by the theme) so I don't feel any need to keep Hugo up-to-date.


How do you implement live refresh without JavaScript?


inotifywait -> pandoc compile -> xdotool -> browser action :)

I get the computer to hit F5 on the browser (and/or type URLs into the url box and hit enter).

Here is how it works (and it works great!): https://github.com/adityaathalye/shite?tab=readme-ov-file#ho...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: