Adding archetypes for subfolders

I am trying to add archetype for subfolders but its not working, for example:

Folder structure

`- content
    |- blog
    `- projects
        |- oss
        `- tutorials

For projects and blog the archetypes is archetypes/ and archetypes/ respectively.

But I am trying to get seperate archetypes for oss and tutorials. I tried the following and they are not working

  1. achetypes/
  2. archetypes/oss/
  3. archetypes/projects/
  4. archetypes/projects/oss/

I am not sure how to set this. Any help would be appreciated.



To create content:

hugo new blog/
hugo new projects/
hugo new --kind oss projects/oss/
hugo new --kind tutorials projects/tutorials/

Unless you specify --kind in the command line, Hugo chooses the archetype based on the content type.

Hugo resolves the content type from either the type in front matter or, if not set, the first directory in the file path.

Got it. Thanks for your help.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.