Skip to content

Commit

Permalink
docs: fix link in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoPennec committed Apr 5, 2020
1 parent dc521ab commit e1d7a91
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ yarn add @nuxtjs/sitemap
- Add `@nuxtjs/sitemap` to the `modules` section of your `nuxt.config.js` file:

```js
{
modules: [
'@nuxtjs/sitemap'
]
],
}
```

> **notice:**
Expand Down Expand Up @@ -295,14 +297,13 @@ The `defaults` parameter set the default options for all routes.
defaults: {
changefreq: 'daily',
priority: 1,
lastmod: new Date(),
lastmodrealtime: true
lastmod: new Date()
}
}
}
```

See available options: https://github.com/ekalinin/sitemap.js#usage
See available options: https://github.com/ekalinin/sitemap.js/blob/4.1.1/README.md#sitemap-item-options

## Sitemap Index Options

Expand Down Expand Up @@ -412,11 +413,7 @@ eg. add routes for `/users/:id` in the configuration:

{
sitemap: {
routes: [
'/users/1',
'/users/2',
'/users/3'
]
routes: ['/users/1', '/users/2', '/users/3']
}
}
```
Expand All @@ -432,7 +429,7 @@ const axios = require('axios')
sitemap: {
routes: async () => {
const { data } = await axios.get('https://jsonplaceholder.typicode.com/users')
return data.map(user => `/users/${user.username}`)
return data.map((user) => `/users/${user.username}`)
}
}
}
Expand Down

0 comments on commit e1d7a91

Please sign in to comment.