gohugoio / hugoDocs

The source for https://gohugo.io/
Apache License 2.0
1.03k stars 1.47k forks source link

docs typo: hugo new content posts/my-first-post.md #2624

Closed jakegatsby closed 1 month ago

jakegatsby commented 1 month ago

I believe there is a typo on the https://gohugo.io/getting-started/quick-start/ page for "Add content":

hugo new content posts/my-first-post.md

I don't think the content arg is supposed to be there, and the command should be:

hugo new posts/my-first-post.md
jmooring commented 1 month ago

All of these work with v0.112.0 or later, which is why the quick start guide requires v0.112.0 or later.

hugo new content content/posts/foo.md
hugo new content posts/foo.md
hugo new content/posts/foo.md
hugo new posts/foo.md

We currently don't require the "content" subcommand; this provides backward compatibility. The "content" subcommand was added in v0.112.0.