I am trying to add archetype for subfolders but its not working, for example:
blog the archetypes is
But I am trying to get seperate archetypes for
tutorials. I tried the following and they are not working
I am not sure how to set this. Any help would be appreciated.
To create content:
hugo new blog/blog-1.md
hugo new projects/project-1.md
hugo new --kind oss projects/oss/oss-1.md
hugo new --kind tutorials projects/tutorials/tutorial-1.md
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.