Skip to content

Content types

A content type in Vault CMS lines up with an Astro content collection—a folder under src/content where your Markdown lives. Each type has its own folder, frontmatter template, and URL pattern on the site.

Run the setup wizard (Vault CMS: Open Wizard from the command palette). It scans your Astro project for collections and dynamic routes. The CLI prints similar output during install, for example:

📍 Route detection:
posts → /posts/ (from src/pages/posts/[...slug].astro)
pages → / (from src/pages/[...slug].astro)
docs → /docs/ (from src/pages/docs/[...slug].astro)

The wizard maps routes under src/pages (e.g. [...slug].astro) to the collections they use. You normally do not configure this by hand.

Each type is a subfolder inside the vault, for example:

src/content/
├── posts/
├── pages/
├── docs/
├── projects/
└── special/
Content typeFolderURL patternExample
Postsposts//posts/[slug]/posts/my-first-post
Pagespages//[slug]/about
Docsdocs//docs/[slug]/docs/getting-started
Projectsprojects//projects/[slug]/projects/my-app
Special (home)special///

Exact rules come from your theme and routes. Home.base uses a slug formula so you can preview URLs; open _bases/Home.base or the Home view.

Typical columns:

  • Title — from title in frontmatter
  • Path — computed URL slug for the live site
  • Date — from date or pubDate
  • Draft — whether the file is treated as a draft

Ctrl/Cmd + N uses your default content type (often posts). To target another folder, select that folder in the file explorer first, then create the note—or move an existing file into the right folder.