Run hugo from subdirectory

I have a hugo site. Up until today, all hugo related files lived at the root of my repo. Everything worked. Today I decided to move hugo related files to the “hugo” directory and now Netlify build fails:

It seems that Netlify can’t locate hugo “content” directory. It is there, only inside another directory. Is it allowed to put hugo files inside directory, or they need to live on the root of the repo?

My Netlify build settings:

Hi @Martins, welcome to the Netlify Community.

Have you tried using the build command hugo -s hugo or hugo --source hugo ?

Also, test it local first to make sure where it builds your output. There is also a destination flag you can use to put your output -d or --destination.

You can find these command flags with a hugo --help or see the docs here