Introduction to HUGO and how to install in Win/Mac

1. Introduction to Hugo

  1. HUGO is for Static Website
    • So What is Dynamic Websites?
  2. HUGO help you build a websites with no HTML code(markdown)

2. Installing Hugo on Windows

  1. It is a GitHub project, can download from its release page, up to now latest version is v0.134.0
  2. Get tar file corresponding to your system(Windows) from Assets
    • tar file with “extended” is for more powerful feat.
  3. Download it and untar, then got a bin file, setup Path

3. Installing Hugo on Mac

brew install hugo

4. Install From Source(Highly Recommend!!)

Prerequired

  1. Install Git
  2. Install Go, Version ≥ 1.24
  3. Install a C compiler, either GCC or Clang

To build the standard edition

go install github.com/gohugoio/hugo@latest

latest could be replaced by specific version such as v0.147.8

To build the extended edition

CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest

To build the extended/deploy edition

CGO_ENABLED=1 go install -tags extended,withdeploy github.com/gohugoio/hugo@latest