my str:
git clone https://gitlab.com/leela52452/hugo.git
cd hugo
cd themes
git submodule add GitHub - jesselau76/hugo-w3-simple: Hugo Theme hugo-w3-simple
git .add
git submodule update --remote --merge
git commit -m “initial commit”
git push origin master
it is now showing as link at https://gitlab.com/leela52452/hugo/tree/master/themes
what am i doing wrong
cant i just upload theme directory and start configuring on gitlab.com
My understanding is you can download the theme (not clone) and unzip it into your site’s theme directory - that works fine.
The reason for using the submodule method (which is what you’re currently doing) is that way you can ‘link’ your site the actively developed theme, and fairly easily update your site to the latest commit. Using submodules also decreases the amount of duplicate code floating around - since you don’t keep a copy of the theme with your own site, it just points to the git repository.