I’m a Developer Evangelist over at CircleCI, so props for this post.
My personal site is built with Hugo and I do something similar, but using a script and an environment variable: https://github.com/felicianotech/feliciano.tech/blob/master/circle.yml
I’m happy to see other Hugo users using CircleCI. Great combo.