Hugo archetypes are template files that help you quickly create new content with pre-defined front matter and structure. They save time and ensure consistency across your content.
Archetypes in Hugo work like blueprints for your content. When you run hugo new, Hugo looks for an archetype file matching your content type and uses it as a template.
For example, with our TIL archetype at archetypes/til.md:
1hugo new content/tils/my-new-til.md --kind til
This creates a new file with:
You can customize archetypes for different content types, making content creation faster and more consistent.