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
Copy file name to clipboardexpand all lines: README.md
+55-49
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,9 @@ Checkout the [examples](https://github.com/SergeyMyssak/nextjs-sitemap/tree/mast
23
23
-[Sitemap methods](#sitemap-methods)
24
24
-[Sitemap options](#sitemap-options)
25
25
-[Useful information](#useful-information)
26
+
-[Language localisation](#language-localisation)
27
+
-[Gzip](#gzip)
28
+
26
29
27
30
## Installation
28
31
@@ -591,58 +594,61 @@ Sitemap.generateSitemap();
591
594
592
595
## Useful information
593
596
594
-
- The value of the hreflang attribute identifies the language (in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format) and optionally a region (in [ISO 3166-1 Alpha 2](https://en.wikipedia.org/wiki/ISO_3166-1) format) of an alternate URL.
595
-
- You can gzip your sitemap.xml. The .gz extension just means that it's been compressed (using gzip compression), so that it's smaller and served faster. Most search engine bots can read gzip'd compressed content.
597
+
#### Language localisation
598
+
The value of the hreflang attribute identifies the language (in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format) and optionally a region (in [ISO 3166-1 Alpha 2](https://en.wikipedia.org/wiki/ISO_3166-1) format) of an alternate URL.
599
+
600
+
#### Gzip
601
+
You can gzip your `sitemap.xml`. The .gz extension just means that it's been compressed (using gzip compression), so that it's smaller and served faster. Most search engine bots can read gzip'd compressed content.
596
602
597
-
<details><summary>Look at code how you can generate sitemap.xml.gz</summary>
598
-
<p>
603
+
<details><summary>Look at code how you can generate <code>sitemap.xml.gz</code></summary>
604
+
<p>
599
605
600
-
```js
601
-
// import zlib from 'zlib';
602
-
// import fs from 'fs';
603
-
// import { configureSitemap } from '@sergeymyssak/nextjs-sitemap';
0 commit comments