Skip to content
Permalink
Browse files

docs: fix code sample

  • Loading branch information...
NicoPennec committed Nov 7, 2019
1 parent 490dc96 commit 9acbf5c9500fe0a98f2595dd3749b410c4d32c03
Showing with 15 additions and 12 deletions.
  1. +15 −12 README.md
@@ -128,6 +128,7 @@ Each item of the `sitemaps` array can be setup with its own [sitemap options](#s
}
]
}
}
```

### Setup a list of sitemaps
@@ -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',
@@ -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.

0 comments on commit 9acbf5c

Please sign in to comment.
You can’t perform that action at this time.