Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 373 Bytes

cool-ravens-occur.md

File metadata and controls

18 lines (14 loc) · 373 Bytes
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