Skip to content

Commit

Permalink
docs: fix code sample
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoPennec committed Nov 12, 2019
1 parent ad7989e commit 28752e0
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions README.md
Expand Up @@ -128,6 +128,7 @@ Each item of the `sitemaps` array can be setup with its own [sitemap options](#s
}
]
}
}
```

### Setup a list of sitemaps
Expand Down Expand Up @@ -313,8 +314,9 @@ Set the `hostname` value to each sitemap linked to its sitemap index.
Array of [sitemap configuration](#sitemap-options]) linked to the sitemap index.

```js
// nuxt.config.js
// nuxt.config.js

{
sitemap: {
path: '/sitemapindex.xml',
hostname: 'https://example.com',
Expand All @@ -328,20 +330,21 @@ Array of [sitemap configuration](#sitemap-options]) linked to the sitemap index.
}
]
}
}
```

```xml
<!-- generated sitemapindex.xml -->

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/sitemap-foo.xml</loc>
</sitemap>
<sitemap>
<loc>https://example.com/folder/sitemap-bar.xml</loc>
</sitemap>
</sitemapindex>
<!-- generated sitemapindex.xml -->

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/sitemap-foo.xml</loc>
</sitemap>
<sitemap>
<loc>https://example.com/folder/sitemap-bar.xml</loc>
</sitemap>
</sitemapindex>
```

See more [examples](#usage) above.
Expand Down

0 comments on commit 28752e0

Please sign in to comment.