Frontmatter
By default, the comment block will be displayed on all pages of your documentation.
To disable comments on a specific page, extend the collection schema:
import { defineCollection, z } from 'astro:content'import { docsLoader } from '@astrojs/starlight/loaders'import { docsSchema } from '@astrojs/starlight/schema'
export const collections = { docs: defineCollection({ loader: docsLoader(), schema: docsSchema({ extend: z.object({ giscus: z.boolean().optional().default(true), }), }), }),}
and add the property giscus: false
in the page’s frontmatter:
---title: Some Pagegiscus: false---