What is Hugo?

Hugo is an open-source static site generator.

How to install?

As mentioned here, there are few other package management tool that you can use to install Hugo on Windows. I found installing with binaries as the easiest way to install Hugo. Follow the instructions below to install Hugo using binary.

1. Download any desired release version

Visit github release page for Hugo and download binary release of your choice. For instance hugo_0.78.2_Windows-64bit.zip

2. Extract and add to PATH

After you’ve downloaded the binary, extract it in any folder you like. If you extracted inside a folder (hugo) in D:> so that the path to your extracted hugo.exe file is D:\hugo\hugo.exe then, add D:\hugo in your environment PATH variable.

3. Test the installation

Open a terminal window and type hugo new site first_site. If your installation was successful then you should see something like

Congratulations! Your new Hugo site is created in P:\first_site.

Just a few more steps and you're ready to go:

1. Download a theme into the same-named folder.
   Choose a theme from https://themes.gohugo.io/ or
   create your own with the "hugo new theme <THEMENAME>" command.
2. Perhaps you want to add some content. You can add single files
   with "hugo new <SECTIONNAME>\<FILENAME>.<FORMAT>".
3. Start the built-in live server via "hugo server".

Visit https://gohugo.io/ for quickstart guide and full documentation.

If you get an error then make sure you’ve correctly executed step 2.