[solved] Submodule issue with github pages in docs

I’ve set up a very basic site, with a single post, using the hemingway2 theme (https://github.com/beli3ver/hemingway2).

Now, the site works just fine locally, but once I try to push it to github it fails with:

The submodule cais_ssgen/themes/hemingway2 was not properly initialized with a .gitmodules file.

I’ve used the config.toml, as suggested by the theme’s developers and I’ve set the publishDir accordingly. I’ve also tried to init and update the submodule in the hemingway2 (./themes/hemingway2) with:

git submodule init
git submodule update

and then pushed the whole thing again, but I still get the same error.

Any advice?

I was supposed to

git submodule add https://github.com/beli3ver/hemingway2

in the themes directory, not git clone it. Seems to work now.