diff options
Diffstat (limited to 'packages/integrations')
-rw-r--r-- | packages/integrations/sitemap/CHANGELOG.md | 25 | ||||
-rw-r--r-- | packages/integrations/sitemap/package.json | 2 |
2 files changed, 26 insertions, 1 deletions
diff --git a/packages/integrations/sitemap/CHANGELOG.md b/packages/integrations/sitemap/CHANGELOG.md index a6ee0c46c..3a275957b 100644 --- a/packages/integrations/sitemap/CHANGELOG.md +++ b/packages/integrations/sitemap/CHANGELOG.md @@ -1,5 +1,30 @@ # @astrojs/sitemap +## 3.1.0 + +### Minor Changes + +- [#9846](https://github.com/withastro/astro/pull/9846) [`9b78c992750cdb99c40a89a00ea2a0d1c00877d7`](https://github.com/withastro/astro/commit/9b78c992750cdb99c40a89a00ea2a0d1c00877d7) Thanks [@ktym4a](https://github.com/ktym4a)! - Adds a new configuration option `prefix` that allows you to change the default `sitemap-*.xml` file name. + + By default, running `astro build` creates both `sitemap-index.xml` and `sitemap-0.xml` in your output directory. + + To change the names of these files (e.g. to `astrosite-index.xml` and `astrosite-0.xml`), set the `prefix` option in your `sitemap` integration configuration: + + ``` + import { defineConfig } from 'astro/config'; + import sitemap from '@astrojs/sitemap'; + export default defineConfig({ + site: 'https://example.com', + integrations: [ + sitemap({ + prefix: 'astrosite-', + }), + ], + }); + ``` + + This option is useful when Google Search Console is unable to fetch your default sitemap files, but can read renamed files. + ## 3.0.5 ### Patch Changes diff --git a/packages/integrations/sitemap/package.json b/packages/integrations/sitemap/package.json index 2bc76067d..e44836779 100644 --- a/packages/integrations/sitemap/package.json +++ b/packages/integrations/sitemap/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/sitemap", "description": "Generate a sitemap for your Astro site", - "version": "3.0.5", + "version": "3.1.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", |