How to build Hugo site
Hugo is a fast and modern static site generator written in Go. Hugo is one of the easiest framework for engineer to create website.This site is created by Hugo as well. This article told you to how to build Hugo site.
Install goenv
I recommend to install golang with goenv that can easily change versions. Install goenv command.
$ brew update
$ brew install goenv
To make a path, update .bash_profile
and reload it.
$ vi ~/.bash_profile
# add blow
export GOPATH=$HOME/go
export GOENV_ROOT=$HOME/.goenv
export PATH="$GOENV_ROOT/bin:$PATH"
eval "$(goenv init -)"
export PATH=$PATH:$GOPATH/bin
# reload
$ source ~/.bash_profile
Check the goenv version. Completed if you can see like this.
$ goenv --version
goenv 2.0.0beta11
Install golang
Search a stable version. Command like below, you can see the listed versions.
$ goenv install -l
Install target version
goenv install 1.13.3
After installation, globalize this version
$ goenv global 1.13.3
Check the golang version. Completed if you car see like this.
$ go version
go version go1.13.3 darwin/amd64
Install hugo
$ brew update
$ brew install hugo
comments powered by Disqus