Unable to deploy Hugo site with theme Anubis (hugo mod)

I’m trying to deploy a new Hugo website using the Anubis theme. In the docs the author recommends using Hugo Modules when using his theme. Anubis | Hugo Themes

When deploying the website with the settings from the theme’s docs, I get the following error:

Error: Unable to find theme Directory: /opt/buildhome/repo/themes/github.com/Mitrichius/hugo-theme-anubis

Is there any workaround?

Is your repo open source? If so, can you share the link?

Otherwise, what’s your gitmodules file and do you have the module committed?

Thanks for the fast reply. I managed to solve the problem myself by adding the HUGO_VERSION env variable.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.