Skip to content

Collection

A collection page list all collection videos available in the project for a specific collection.

To transform a documentation page into a collection page, add the video frontmatter field to a Markdown or MDX page with the type set to collection and at least a collection to define the collection.

src/content/docs/course/index.md
---
title: My video course
video:
type: collection
collection: course
---

Any Markdown or MDX content will be displayed alongside the collection videos allowing you to provide additional information related to the collection you want to share with your users.

The video frontmatter field supports the following fields when the type is set to collection:

required
type: string

The name of the collection for which to display the collection videos. The collection name must match the collection name defined in the collection field of all collection videos related to that collection.

---
video:
collection: course
---

type: number | string

An optional description of the collection that will be displayed in collections pages listing all collections. When not provided, the Starlight description frontmatter field will be used if present.

---
video:
description: A concise description of the collection to display in the collections page.
---

type: Date

The optional publication date of the collection which must be a valid YAML timestamp. In collections pages listing all collections, collections will be sorted by publication date and then by title.

---
video:
date: 2024-12-31
---