Blogging about Programming, Painting and Reading
Ernst Rullmann
Recently I added some command line aliases to more quickly add new posts to Hugo, the static site generator
that powers this blog. So for example I can type hnp New Post
and it will run hugo new --kind post-bundle posts/2021-06-19-new-post
. Then using Hugo’s archetypes it will create a new blog post in the format I like, with the date prefixing the folder name. I used a bash function instead of a true alias to allow me to write out the titles in plain english.