'Hugo new test.md' throws 'unable to locate Config'

On a fresh website, while in the ‘contents’ directory, I issue ‘hugo new test.md’.

However, I get the following:

‘Error: Unable to locate Config file. Perhaps you need to create a new site. Run hugo help new for details.’

The config.toml file is in place.

What am I missing?

You need to call hugo new test.md from the root of the project, not from inside contents

3 Likes

Duh! I wasted so much time fighting this RTFM thing :frowning:

Suggestion filed on GitHub.