The archtypes in Hugo
When I was pushing blogs use hugo themes, I found a strange thing: I cannot go the the subdirectory of my blog, that’s very wired.
Then after using the command hugo server
to run my blog locally, I found that my archtypes are wrong.
The archtype is like a template when you use hugo new
to write new blog, it will generate a new .md
file. When you open the file, you’ll find that this file is not a empty file, you will get some information on this file if you configure your archtypes file.
Traditionally, there’re two types of archtype file.
- This is a correct way.
|
|
- This is another way.
|
|