astro/.changeset/cool-ravens-occur.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
373 B
Markdown
Raw Normal View History

---
'astro': patch
---
Add user-configurable `sitemapFilter` option.
This option can be used to ensure certain pages are excluded from your final sitemap.
```ts
// astro.config.ts
import type { AstroUserConfig } from 'astro'
const config: AstroUserConfig = {
sitemap: true,
sitemapFilter: (page: string) => !page.includes('secret-page')
}
export default config
```