Multiple archetypes, one folder?

After getting my existing content mostly ship-shape, I am now moving forward to future content. I like the idea of archetypes vs. just copying blank draft posts. But if I try using an archetype and I specify this archetype from the command line (for example, hugo new books/ it creates this new file in the content/books folder. But I want all of my blog posts (including book reviews) in the /content/posts folder.

How can I specify the /posts folder when creating a new file? I intend on having several archetype files, but want all the content in the same folder.

aaaaaand, of course I find the answer only after posting the question sigh

hugo new -k books posts/

That does what I wanted.


I was in a similar situation of answering my question. This is useful regardless.

1 Like