mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 07:18:54 +00:00
1.1 KiB
1.1 KiB
_comment
| _comment |
|---|
| Do not remove front matter. |
Build from source
To build Hugo from source you must install:
Standard edition
To build and install the standard edition:
CGO_ENABLED=0 go install github.com/gohugoio/hugo@latest
Deploy edition
{{< new-in v0.159.2 />}}
To build and install the deploy edition:
CGO_ENABLED=0 go install -tags withdeploy github.com/gohugoio/hugo@latest
Extended edition
To build and install the extended edition, first install a C compiler such as GCC or Clang and then run the following command:
CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest
Extended/deploy edition
To build and install the extended/deploy edition, first install a C compiler such as GCC or Clang and then run the following command:
CGO_ENABLED=1 go install -tags extended,withdeploy github.com/gohugoio/hugo@latest