$ mkdir src
$ cd src
$ git clone https://github.com/gohugoio/hugo.git
$ go build --tags extended
$ cp ~/go/bin/hugo ~/.local/bin
$ hugo version
Hugo Static Site Generator v0.68.0-DEV/extended linux/amd64 BuildDate: unknown
$ mkdir hugo-tst
$ cd hugo-tst/
$ hugo version
$ hugo new site quickstart
Now ensure it is under git control
$ cd quickstart/
$ ls
$ git init
Now add a Theme to the website
$ git submodule add https://github.com/themefisher/Influencer-hugo themes/influencer-hugo
$ echo 'theme = "influencer-hugo"' >>config.toml
$ git add -A
$ git status
$ git commit -m 'initial config and theme'
$ git status
Now ensure we have Cache-Dir configured to work
$ mkdir ~/Cache-Dir
$ echo 'CacheDir = "/home/user/Cache-Dir/"' >>config.toml
$ git commit -m 'configure Cache-Dir'
$ hugo new posts/my-first-post.md