Module "hugo-universal-theme" not found error while pushing to github

When I try to push my site to github I get an Error: module "hugo-universal-theme" not found; either add it as a Hugo Module or store it in "/home/runner/work/MyRepo/themes".: module does not exist error.

I added these to the .gitmodule sadly it didn’t change anything:

[submodule "themes/hugo-universal-theme"]
path = themes/hugo-universal-theme
url = https://github.com/devcows/hugo-universal-theme

this is an error from Hugo, not Git. You haven’t correctly referenced the theme in your site configuration.

Ah you are right, I had themesDir = "../themes" instead of themesDir = "themes" Thank you! Also, I still cannot see the site at https://myusername.github.io/myrepo despite everything looking like all set:

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