I changed the way I create posts in this website. The new way automates most of the boring tasks.
One downside is that it does not work well with SVG files.
I had to convert all the SVG files in my site to PNG.
First I installed inkscape:
brew install inkscape
Then I run this command from the folder where all my SVG files are:
inkscape --export-type="png" $(ls -q)