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 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.

Submodules in DevOps

Andre van den Berg
Andre van den Berg

Andre works with Azure, Office 365, Intune and automating things with PowerShell as a consultant at The Sourcing Company. He worked as a system/network administrator at Meyra for 18 years and helped people with everything related to IT while innovating the IT infrastructure at the same time. He enjoys attending meetups and events to learn new technologies, talk with interesting people and exchange stickers. He turned his hobby into his job and loves to blog, work on IoT projects at home and read books to his daughter.

comments powered by Disqus