First install Termux
Then there are two options:
Open the Termux terminal on your Android device and copy-and-paste the commands listed below and hit ENTER:
apt update;\
apt install -y git golang make;\
export GOPATH=$HOME/go;\
export PATH=$PATH:$GOPATH/bin;\
go get -d github.com/spf13/hugo;\
cd $GOPATH/src/github.com/spf13/hugo;\
make install;\
hugo server -s docs;
Now you can point a browser at http://localhost:1313 and you should see the Hugo site with docs and all.
apt update;\
apt install curl;\
curl -L https://github.com/spf13/hugo/releases/download/v0.20/hugo_0.20_Linux_ARM.tar.gz | tar zxf -
Watching for changes in /data/data/com.termux/files/home/storage/shared/Coding/blog-with-cms/{archetypes,content,layouts,static,themes}
Watching for config changes in /data/data/com.termux/files/home/storage/shared/Coding/blog-with-cms/config.toml
Start building sites …
hugo v0.125.7+extended android/arm BuildDate=unknown
Built in 92 ms
Error: error building site: failed to acquire a build lock: Lock /data/data/com.termux/files/home/storage/shared/Coding/blog-with-cms/.hugo_build.lock: function not implemented