mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
feat: new sitemap
This commit is contained in:
parent
c789869434
commit
9ed2bd7c3a
3 changed files with 20 additions and 33 deletions
19
.changeset/popular-cherries-float.md
Normal file
19
.changeset/popular-cherries-float.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
'@astrojs/sitemap': minor
|
||||
---
|
||||
|
||||
# Key features
|
||||
|
||||
- Split up your large sitemap into multiple sitemaps by custom limit.
|
||||
- Ability to add sitemap specific attributes such as `lastmod` etc.
|
||||
- Final output customization via JS function.
|
||||
- Localization support.
|
||||
- Automatically creates a link to sitemap in `<head>` section of generated pages.
|
||||
- Reliability: all config options are validated.
|
||||
|
||||
## Important changes
|
||||
|
||||
The integration always generates at least two files instead of one:
|
||||
|
||||
- `sitemap-index.xml` - index file;
|
||||
- `sitemap-{i}.xml` - actual sitemap.
|
|
@ -12,12 +12,6 @@
|
|||
"build": "turbo run build --no-deps --scope=astro --scope=create-astro --scope=\"@astrojs/*\"",
|
||||
"build:ci": "turbo run build:ci --no-deps --scope=astro --scope=create-astro --scope=\"@astrojs/*\"",
|
||||
"build:examples": "turbo run build --scope=\"@example/*\"",
|
||||
"build:0": "turbo run build --no-deps --scope=@astrojs/sitemap",
|
||||
"build:ex-a": "turbo run build --no-deps --scope=\"@example/sitemap-*\"",
|
||||
"build:s": "turbo run build --scope=@example/starter",
|
||||
"build:a": "turbo run build --scope=@example/sitemap-advanced",
|
||||
"build:b": "turbo run build --scope=@example/sitemap-basic",
|
||||
"build:i": "turbo run build --scope=@example/sitemap-i18n",
|
||||
"dev": "turbo run dev --no-deps --no-cache --parallel --scope=astro --scope=create-astro --scope=\"@astrojs/*\"",
|
||||
"format": "pnpm run format:code",
|
||||
"format:ci": "pnpm run format:imports && pnpm run format:code",
|
||||
|
|
|
@ -246,7 +246,7 @@ importers:
|
|||
'@astrojs/lit': ^0.1.5
|
||||
'@astrojs/partytown': ^0.1.4
|
||||
'@astrojs/react': ^0.1.3
|
||||
'@astrojs/sitemap': workspace:*
|
||||
'@astrojs/sitemap': ^0.1.2
|
||||
'@astrojs/solid-js': 0.1.4
|
||||
'@astrojs/tailwind': ^0.2.1
|
||||
'@astrojs/turbolinks': ^0.1.3
|
||||
|
@ -303,30 +303,6 @@ importers:
|
|||
astro: link:../../packages/astro
|
||||
sass: 1.52.2
|
||||
|
||||
examples/sitemap/advanced:
|
||||
specifiers:
|
||||
'@astrojs/sitemap': workspace:*
|
||||
astro: workspace:*
|
||||
devDependencies:
|
||||
'@astrojs/sitemap': link:../../../packages/integrations/sitemap
|
||||
astro: link:../../../packages/astro
|
||||
|
||||
examples/sitemap/basic:
|
||||
specifiers:
|
||||
'@astrojs/sitemap': workspace:*
|
||||
astro: workspace:*
|
||||
devDependencies:
|
||||
'@astrojs/sitemap': link:../../../packages/integrations/sitemap
|
||||
astro: link:../../../packages/astro
|
||||
|
||||
examples/sitemap/i18n:
|
||||
specifiers:
|
||||
'@astrojs/sitemap': workspace:*
|
||||
astro: workspace:*
|
||||
devDependencies:
|
||||
'@astrojs/sitemap': link:../../../packages/integrations/sitemap
|
||||
astro: link:../../../packages/astro
|
||||
|
||||
examples/ssr:
|
||||
specifiers:
|
||||
'@astrojs/node': ^0.1.2
|
||||
|
@ -350,10 +326,8 @@ importers:
|
|||
|
||||
examples/starter:
|
||||
specifiers:
|
||||
'@astrojs/markdown-remark': ^0.11.2
|
||||
astro: ^1.0.0-beta.44
|
||||
devDependencies:
|
||||
'@astrojs/markdown-remark': link:../../packages/markdown/remark
|
||||
astro: link:../../packages/astro
|
||||
|
||||
examples/subpath:
|
||||
|
|
Loading…
Reference in a new issue