#can I omit the frontmatter title?
3 messages · Page 1 of 1 (latest)
Hi @molten matrix. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
No — Starlight requires a title in frontmatter for every docs page.
The frontmatter reference explicitly marks title as required: “You must provide a title for every page.” [Frontmatter fields] Starlight does not document any behavior to infer the title from the filename if you omit it, and the authoring guide also states that “Every page must include at least a title.” [Authoring content]
So, for src/content/docs/... pages, you should always include:
---
title: My page title
---