Print hugo version on build

One thing that would really help me out when prowling through the build deployment logs is seeing what version of hugo is being used to deploy the site. This is something that is provided with a lot of the requirements (go, ruby, PHP, etc) and other build tools like Jekyll, so it would be great to see it with Hugo as well!

Hi, @makyo, the build logs should contains lines like so:

1:04:03 PM: Installing Hugo 0.72.0
1:04:04 PM: Hugo Static Site Generator v0.72.0-8A7EF3CF/extended linux/amd64 BuildDate: 2020-05-31T12:14:23Z

This will show the version of Hugo used. If you are unsure, you can also print the hugo version during the build with a build command of hugo version ; hugo instead of just hugo.

If there are other questions, please let us know.