Deploying a Themeforest Hugo theme to Netlify using a submodule

Hi, I have set up continuous deployment of my Hugo site to Netlify via Git with a theme I purchased from Themeforest. I copied the theme into the route of the Hugo folder (not inside a themes folder).

Everything works fine but when I try to configure the base URL in config.toml, I get an error:

: exit status 128: fatal: No url found for submodule path "tidygizmo" in .gitmodules
: exit status 128

2:30:04 PM: Error checking out submodules: fatal: No url found for submodule path "tidygizmo" in .gitmodules
: exit status 128

From what I understand, installing a theme using a submodule is best and may correct the issue but the developer doesn’t have the theme on GIT and this is a requirement for adding a theme using a submodule, as far as I’m aware. I assume because it’s a premium theme.

I’ve read about people ‘mirroring’ the theme but don’t know how to do this or if it will fix the problem.

Any support would be much appreciated.

Cheers

Extract the theme in Hugo’s theme folder then add it to your config. You will need to add any future updates manually.

I see. Thanks Arif. I’ll give that a go…