pesader

Add a Hugo theme as a git submodule

Head to the root directory of your Hugo project and run:

git submodule add https://gitlab.com/$OWNER/$THEME themes/$THEME
git submodule init --recursive themes/$THEME

Later, when you want to sync the submodule with its remote, run:

git submodule update --remote themes/$THEME

Published on April 2, 2023.