sudo apt-get install golang python-pygments
- vim ~/.bashrc
// add the following 3 lines:
export GOROOT=/usr/lib/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
- source ~/.bashrc
- go get -u -v github.com/spf13/hugo
brew install hugo
...........................................
- hugo new site sharon/docroot/ --force
- cd /sharon/docroot && hugo new about.md
- edit config.toml:
contentdir = "content" layoutdir = "layouts" publishdir = "public" canonifyurls = false baseurl = "" languageCode = "en-us" title = "Hugo Freelancer Theme" theme = "hugo-freelancer-theme"
- hugo server
- hugo -w
hugo -w --source="docroot" & live-server "docroot/public'
.......................................................