Introduction to HUGO and how to install in Win/Mac
1. Introduction to Hugo
-
HUGO is for Static Website
- So What is Dynamic Websites?
- HUGO help you build a websites with no HTML code(markdown)
2. Installing Hugo on Windows
- It is a GitHub project, can download from its release page, up to now latest version is v0.134.0
- Get tar file corresponding to your system(Windows) from Assets
- tar file with “extended” is for more powerful feat.
- 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
- Install Git
- Install Go, Version ≥ 1.24
- Install a C compiler, either GCC or Clang
To build the standard edition
go install github.com/gohugoio/hugo@latest
latestcould be replaced by specific version such asv0.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