Submodules in your DevOps CI/CD for Hugo
Submodules in your DevOps CI/CD for Hugo
When you are building your site with the Hugo website generator you can load the themes as a Submodule in your repository with the following command:
git submodule add https://github.com/jpescador/hugo-future-imperfect.git themes/hugo-future-imperfect
But when you then commit and push your changes to your Git repository in Azure DevOps and run the following command:
Hugo -v
In your build pipeline and then go to your website you will see that the theme is missing from your site
To solve this problem change the following setting (marked yellow) in your Build Pipeline.