Hugo + Emacs Tramp = Website
Previous set-up #
The previous version of my blog was built using a free wordpress template and used OVH as the host. They have a “1-click build” system that made it fairly easy. I wanted to get away from Wordpress because it seemed bigger than what I needed and it was hard to customise.
I’ve also recently been using this extension to block JavaScript by default, and I’ve been really enjoying it. But it turned out my own website didn’t work without some JS!
New set-up #
For my new set-up I had the following requirements:
- can keep all the text locally under version control and save it to any remote repo
- builds fast
- ideally uses some sort of markdown format
- allows for LaTeX for equations
- No Javascript
- Easy image inlining
- Code highlighting
I found the following to work very well:
- https://gohugo.io/ for the template and build system, which I found because many other blogs use it
- https://nojs.andy.sb/ for the theme, with the extra options for LaTeX pre-render
- This guide from OVH which means I can use Emacs’ Tramp remote protocol to drop files in
So now the workflow is to write my blog bost, build it with the command hugo build and then copy all the files over.