In order to make creating and publishing quicker and easier I created a couple of little shell scripts to help me along my way. I have a hard time remembering all the little switches and commands to publish and I hate making little mistakes each time I try to do something quickly. The answer is simple, automate the monotony away!
The first script new.sh creates a new post in the post directory. Then it launches the hugo server so I can see it and launches VS Code so I can start editing without clicking around.
The second script build.sh builds the Hugo site. Then it calls the optimize_images.js script I wrote earlier. Side Note: I just updated that script to check if the image already exists, which cuts down on processing a bunch of extraneous files. Then it asks if I want to publish the changes to the server.
All in all these scripts took an hour or two to write, and but they cut down the time to publish (and debug when I have a typo) to seconds to publish. These optimizations help me use my brain for better things.
The header photo was found and provided from Anton Gorlin Photography cc-by-sa Beautiful Pictures by Anton Gorlin