If you want to do it a bit differently than the instructions from Hugo website, you can do the following steps:
Steps to Download and Install Hugo for Windows
Download Hugo zip file from Hugo Releases.
Extract the zip file and you will see one executable and a couple markdown files.
- Copy hugo.exe to your root folder, i.e. C:\Hugo\bin\ like so:
- Now add this path to your Environment Variables as shown below and click OK to all buttons.
- Test your Hugo from Command Prompt or Powershell.
C:\Windows\system32> hugo version Hugo Static Site Generator v0.37 windows/amd64 BuildDate: 2018-02-27T09:15:58Z
That’s it and you’re ready to use Hugo. The next step is to setup your environment to create your static site if you haven’t done so.
When you need to upgrade Hugo, just replace the current hugo.exe with the latest version by repeating steps 1 and 2.
Further Reading
How to Setup Visual Studio Code for Hugo Static Site Generator
How to Deploy Hugo Static Website to IIS Using Git
How to Setup Naked Domain to Resolve in Cloudflare Pages
Download
Hugo Releases (all platforms)
Leave a Reply