32 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Install Hugo in Windows
date: 2023-12-31
tags: ["hugo","blog"]
image : "/img/posts/img-1.jpg"
Description : "In this guide, we'll walk through installing Hugo, a popular static site generator. Whether youre new to static site development or transitioning from another tool, well cover the essential steps to get Hugo up and running."
featured: true
---
Hugo comes in three versions: Standard, Extended, and Extended/Deploy. The Standard edition covers core functionalities, while Extended adds advanced options, with Extended/Deploy** offering further deployment features.
### Setting Up Your Directories
1. Open File Explorer and create a folder, e.g., `C:\Hugo`, and inside it, a `bin` folder.
### Installing Hugo
1. Download the latest Hugo executable from [Hugo releases](https://github.com/gohugoio/hugo/releases/).
2. Extract the contents into `..\Hugo\bin`.
3. Open Command Prompt as Administrator and add Hugo to the PATH:
```
setx PATH "%PATH%;C:\Hugo\bin"
```
Alternatively, add `C:\Hugo\bin` via Environment Variables.
4. Verify the installation by typing `hugo help` in the command prompt.
{{< figure src="/img/posts/install-hugo/hugo-help-command.png"
alt="Hugo help in Command Prompt"
attr="Hugo in Command Prompt"
attrlink="" >}}
You can check the offical documentation for more installation details [here](https://gohugo.io/installation/).