This is my blog. The design isn’t revolutionary.
It is just a group of static pages - thanks to the Hugo engine. The theme is PaperMod.
I write all of my posts (and almost everything else) using Emacs. In particular I use Org Mode, and I’ve recently discovered the useful ox-hugo minor mode to export the pages for Hugo.
My plan is to replicate all of my other writings here. So you will see links/references to, amongst others, the Vifortech Solutions blog (see the Vifortech category).
Testing locally
I test locally, including looking at drafts with the following command:
hugo server --buildDrafts --navigateToChanged
If I’m feeling adventurous and want to test on another machine I’ll try something like
hugo server --buildDrafts --navigateToChanged --baseURL http://$(uname -n) --bind 0.0.0.0
I’m faking the baseURL
here to be my local hostname, so I can test on mobile
for example. If my (or your) hostname doesn’t resolve, the command ipconfig getifaddr en0
will give the local IP address.
This also opens up the site to everyone on the network, so probably not wise to do this on a public WiFi.
Export the HTML for public consumption
hugo --cleanDestinationDir
Depending on how I’m working I’ll either use magit (by preference) in Emacs or just git on the command line to commit the changes and then push to the wider world.