Archetypes

Governance rules

Archetypes are starter files for known content shapes. They reduce copy-and-paste drift by giving each repeated page type the same initial front matter and opening structure.

Use Naming conventions for archetype key names. Use this page when adding or changing the physical files under archetypes/.

Current library#

ArchetypeIntended path familyUse when
blog-postcontent/blog/**/name.en.mdCreating a main-site article
blog-sectioncontent/blog/**/_index.en.mdCreating a main-site topic hub
brand-docs-pagecontent-brand/docs/**/name.en.mdCreating a brand documentation leaf page
brand-docs-sectioncontent-brand/docs/**/_index.en.mdCreating a brand documentation section hub
componentcontent-brand/docs/**/components/**Creating a component reference page
docs-pagecontent*/docs/**/name.en.mdCreating a generic documentation leaf page
docs-sectioncontent*/docs/**/_index.en.mdCreating a generic documentation section hub
legal-pagecontent*/legal/**/name.en.mdDrafting legal or policy pages
shortcodecontent-brand/docs/**/shortcodes/**Creating a shortcode reference page
til-notecontent/til/**/name.en.mdCreating a small note about something learned

Create content with an explicit kind:

hugo new -k brand-docs-page content-brand/docs/site-governance/example.en.md

Create the French pair from the same archetype, then translate the front matter and body intentionally:

hugo new -k brand-docs-page content-brand/docs/site-governance/example.fr.md

Rules#

  • Keep archetypes small; they should start a page, not write the page.
  • Include only fields that change template behaviour or help authors avoid omissions.
  • Do not include empty aliases: unless the archetype documents URL migration.
  • Do not create a site-specific archetype when the generic shape is enough.
  • Update this page and Naming conventions when a new archetype key is added.

What stays elsewhere#

Front matter fields are governed by Site governance > Content > Front matter. Template behaviour is documented in Front matter. Archetypes only provide starter files for those rules.