Run hugo from subdirectory

Hey,
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 Image 2020-09-29 at 3.14.07 PM and now Netlify build fails: Image 2020-09-29 at 3.15.32 PM

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: Image 2020-09-29 at 3.18.07 PM

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