So frustrated with Hugo and themes. Is it just me ?

I have a .gitignore which contains /themes/** . This is so that themes are not replicated as they are git repos in their own right. I have a .gitmodules which contains: [submodule "themes/PaperMod"] path = themes/PaperMod url = https://github.com/adityatelange/hugo-PaperMod So in theory the theme should be installed in to the correct place using git prior to the build. But it fails with Error: failed to load modules: module "PaperMod" not found in "/opt/buildhome/repo/themes/PaperMod"; either add it as a Hugo Module or store it in "/opt/buildhome/repo/themes".: module does not exist Surely the way that I'm doing it is in theory correct, even if they do want you to use go modules and stuff which I also can't get to work. Just fyi for that I tried module: imports: - path: github.com/adityatelange/hugo-PaperMod and then ran hugo mod get -u What is the correct process to get this to work please ? just doing a git clone ends with the message: warning: adding embedded git repository: themes/PaperMod hint: You've added another git repository inside your current repository. hint: Clones of the outer repository will not contain the contents of hint: the embedded repository and will not know how to obtain it. hint: If you meant to add a submodule, use: hint: hint: git submodule add <url> themes/PaperMod hint: hint: If you added this path by mistake, you can remove it from the hint: index with: hint: hint: git rm --cached themes/PaperMod hint: hint: See "git help submodule" for more information.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server