Archetypes are templates used when you create new content.

In Thulite, archetypes live in archetypes/ and are applied by the create command.

Default archetype

The default template is archetypes/default.md. It defines front matter for new pages, including fields like title, date, and draft.

When you run create, Hugo fills template values such as .Date and generates a title from the filename.

Section-specific archetypes

Add an archetype with the section name to customize defaults for that section.

Examples:

  • archetypes/blog.md for content/blog/
  • archetypes/docs.md for content/docs/

Minimal example (archetypes/blog.md):

blog.md
---
title: "{{ replace .Name "-" " " | title }}"
description: "Define archetypes to standardize frontmatter for new content, reduce repetitive editing, and keep metadata consistent across sections in Thulite."
date: {{ .Date }}
draft: true
tags:
  - blog
---

Use archetypes to keep metadata consistent and reduce repetitive editing.

Learn more

Hugo
Archetypes

Create and customize content templates.