Hugo new pages/ not using /content directory


When I run hugo new pages/

it’s writing the page to the project root like:


but I expect it to be put into the content dir:


What might be mis-configured? or is this expected behaviour for some reason?

TIA, Rob

Hugo Static Site Generator v0.63.0/extended linux/amd64 BuildDate: 2020-01-23T13:20:50Z

1 Like

We might tell you what is misconfigured if you post your configuration :wink:

There is a rule that defines the content directory. If that one is empty it might think you want the root directory to be used. If you remove it then the system takes the default which is content.