10843aba63
* Add filter for sitemap * chore: add changeset * fix: types * docs: add sitemapFilter docs Co-authored-by: David Rothmann <david@rothmann.it>
373 B
373 B
astro |
---|
patch |
Add user-configurable sitemapFilter
option.
This option can be used to ensure certain pages are excluded from your final sitemap.
// astro.config.ts
import type { AstroUserConfig } from 'astro'
const config: AstroUserConfig = {
sitemap: true,
sitemapFilter: (page: string) => !page.includes('secret-page')
}
export default config