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 https://share.getcloudapp.com/mXu6ZJgG and now Netlify build fails: https://share.getcloudapp.com/v1ux6Lw5

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: https://share.getcloudapp.com/wbuPAY2x

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