内容类型
A content type is a way to organize your content. Hugo resolves the content type from either the type
in front matter or, if not set, the first directory in the file path. E.g. content/blog/my-first-event.md
will be of type blog
if no type
set.
A content type is used to
- Determine how the content is rendered. See Template Lookup Order and Content Views for more.
- Determine which archetype template to use for new content.