Hugo
is amazing. It does a lot of wonderful things.
However, I’ve discovered a few gaps:
Maybe these gaps are peculiar to my uses of Hugo; regardless, I chose to fill the gaps as best I could with a new tool: hugo-preproc
.
hugo-preproc
offers both Git and Exec handlers. It has a simple YAML configuration syntax, but is relatively powerful in what you can do.
This was written to be used in conjunction with Hugo. Define your processors, and run hugo-preproc
before you run hugo
in your pipelines, and it can prepare your Hugo site data to be the way you want it before you run Hugo.
I have used this to:
As CI/CD capabilities become more native to our version control platforms, perhaps this tool seems obsolete. One could surely do this with additional steps in your pipelines, but at least with the Git processing, it does allow for rapid development of Git logs to Hugo pages with no coding necessary.
It’s just another tool in the toolbox.
Project link: https://github.com/jason-dour/hugo-preproc