hugo-demo

Cerate new site:

hugo new site hugo-demo --format yaml
cd hugo-demo

Initialize git repository:

git init
git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
cd themes/PaperMod
git checkout v7.0

Create new post:

hugo new posts/first.md

Serve site:

hugo server

Generate static site:

hugo

Remove git submodule:

git rm --cached themes/PaperMod
git rm .gitmodules
rm -rf themes/PaperMod

Pull submodule:

git pull
git submodule update --init --recursive