Hugo new pages/mypage.md not using /content directory

Hi,

When I run hugo new pages/mypage.md

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

${PROJECT_ROOT}/pages/mypage.md

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

${PROJECT_ROOT}/content/pages/mypage.md

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.