You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The maximum number entries per sitemap file. The default value is 45000. A sitemap index and multiple sitemaps are created if you have more entries. See this [explanation of splitting up a large sitemap](https://developers.google.com/search/docs/advanced/sitemaps/large-sitemaps).
These options correspond to the `<changefreq>`, `<lastmod>`, and `<priority>` tags in the [Sitemap XML specification.](https://www.sitemaps.org/protocol.html)
*`defaultLocale`: `String`. Its value must exist as one of `locales` keys.
378
-
*`locales`: `Record<String, String>`, key/value - pairs. The key is used to look for a locale part in a page path. The value is a language attribute, only English alphabet and hyphen allowed.
405
+
To [localize a sitemap](https://developers.google.com/search/docs/advanced/crawling/localized-versions#all-method-guidelines), pass an object to this `i18n` option.
379
406
380
-
[Read more about language attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang).
407
+
This object has two required properties:
381
408
382
-
[Read more about localization](https://developers.google.com/search/docs/advanced/crawling/localized-versions#all-method-guidelines).
409
+
*`defaultLocale`: Its value must exist as one of `locales` keys.
410
+
*`locales`: key/value - pairs. The key is used to look for a locale part in a page path. The value is a [language attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang), only English alphabet and hyphen allowed.
383
411
384
412
```js title="astro.config.mjs" ins={8-15}
385
413
import { defineConfig } from'astro/config';
@@ -433,7 +461,13 @@ The resulting sitemap looks like this:
433
461
...
434
462
```
435
463
436
-
### xslURL
464
+
### `xslURL`
465
+
466
+
<p>
467
+
468
+
**Type:**`string`<br />
469
+
<Sincev="3.2.0"pkg="@astrojs/sitemap" />
470
+
</p>
437
471
438
472
The URL of an XSL stylesheet to style and prettify your sitemap.
0 commit comments