summaryrefslogtreecommitdiff
path: root/packages/integrations
diff options
context:
space:
mode:
authorGravatar Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com> 2024-02-20 06:48:30 -0800
committerGravatar GitHub <noreply@github.com> 2024-02-20 20:18:30 +0530
commit052d3271d4a9f12b88897c57cdfa134cb83c9eee (patch)
treec6756a0eadc6b1a1f6370f066e582de372e80692 /packages/integrations
parentc1671dff22db2f9361c0d42dbf4d5dd6fb0674d0 (diff)
downloadastro-052d3271d4a9f12b88897c57cdfa134cb83c9eee.tar.gz
astro-052d3271d4a9f12b88897c57cdfa134cb83c9eee.tar.zst
astro-052d3271d4a9f12b88897c57cdfa134cb83c9eee.zip
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'packages/integrations')
-rw-r--r--packages/integrations/sitemap/CHANGELOG.md25
-rw-r--r--packages/integrations/sitemap/package.json2
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",