Hugo on Android
I mentioned back in 2019 that I needed to writeup how I’m using hugo to build this static site on my Android phone. So here it is! Only 3 years later
- First I’ve got my complete setup to clone the git repo written here (just updated!).
apt install hugoin termux
- cd to the hugo folder
- run with drafts locally with
hugo server -D --noBuildLock
- Go to http://localhost:1313 to review
- kill with ctrl+c when done
- Do a final build with
- Then push with rsync as detailed in another of my old writeups
I’ve had to add the –noBuildLock flag to the hugo commands because of an issue with build lock on Android.
Originally I had an issue where the css wouldn’t build on Android. I switched to sass from less when Hugo added support for it. Now my sass compiles just fine.