this - Git
git clone https://github.com/gohugoio/hugo.git
cd hugo
go install --tags extended
go get
go build -o hugo main.go
cp -t /usr/bin ./hugo
If you want syntax highlighting, then install pygments
too:
apt install -y python3-pip
pip3 install pygments