Installing Hugo on Windows

So if you have decided to use Hugo for your blog or just giving it a try, you will be relieved to know that it could not be any easier to install Hugo on Windows Operating System. Just download the binary from the official Hugo website, extract it somewhere and you are all set to start creating sites.

Though the official site does a pretty good of documenting the essential steps, just for the sake of completeness (and kind of note to myself), I am documenting the quick start steps here.

Step 1 : Download Hugo binary from the official website

Here

Step 2 : Extract the files in a folder

Extract into a folder (e.g. c:\hugo). The extracted files will have an executable file called hugo.exe. This is what you need to generate sites, posts, etc.

Step 3: Start generating sites

  • To start a new static site, type
  hugo new site exampleSite
  • Most likely you will start on the top of an existing hugo theme. You have two options:

    • Directly download the theme as zip from its github repository and extract it in the themes directory.
    • Using git, download the theme from github repo as a submodule inside themes directory.
    git init
    git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke;
    
  • Hugo themes do their customizations through config.toml file. So locate the config.toml file in the extracted theme directory and copy it in the root folder of your site. Modify it as per your needs.

  • Start creating new Posts using below command:

    hugo new posts/this-is-my-first-post.md