Skip to content

Commit 844c19e

Browse files
authored
chore(gatsby-plugin-sitemap): fix typos (#31351)
1 parent f629806 commit 844c19e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/gatsby-plugin-sitemap/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The options are as follows:
5858
- `createLinkInHead` (boolean = true) Whether to populate the `<head>` of your site with a link to the sitemap.
5959
- `entryLimit` (number = 45000) Number of entries per sitemap file, a sitemap index and multiple sitemaps are created if you have more entries.
6060
- `excludes` (string[] = []) An array of paths to exclude from the sitemap. While this is usually an array of strings it is possible to enter other data types into this array for custom filtering. Doing so will require customization of the [`filterPages`](#filterPages) function.
61-
- `query` (GraphQL Query) The query for the data you need to generate the sitemap. It's required to get the site's URL, if you are not fetching it from `site.siteMetadata.siteUrl`, you will need to set a custom [`resolveSiteUrl`](#resolveSiteUrl) function. If you override the query, you may need to pass in a custom [`resolvePagePath`](#resolvePagePath), [`resolvePages`](#resolvePages) to keep everything working. If you fetch pages without using `allSitePage.nodes` query structure you will definately need to customize the [`resolvePages`](#resolvePages) function.
61+
- `query` (GraphQL Query) The query for the data you need to generate the sitemap. It's required to get the site's URL, if you are not fetching it from `site.siteMetadata.siteUrl`, you will need to set a custom [`resolveSiteUrl`](#resolveSiteUrl) function. If you override the query, you may need to pass in a custom [`resolvePagePath`](#resolvePagePath), [`resolvePages`](#resolvePages) to keep everything working. If you fetch pages without using `allSitePage.nodes` query structure you will definitely need to customize the [`resolvePages`](#resolvePages) function.
6262
- [`resolveSiteUrl`](#resolveSiteUrl) (function) Takes the output of the data query and lets you return the site URL. Sync or async functions allowed.
6363
- [`resolvePagePath`](#resolvePagePath) (function) Takes a page object and returns the uri of the page (no domain or protocol).
6464
- [`resolvePages`](#resolvePagePath) (function) Takes the output of the data query and expects an array of page objects to be returned. Sync or async functions allowed.
@@ -178,7 +178,7 @@ This function is executed via:
178178

179179
```javascript
180180
allPages.filter(
181-
page => !excludes.some(excludedRoute => thisFunc(page, ecludedRoute, tools))
181+
page => !excludes.some(excludedRoute => thisFunc(page, excludedRoute, tools))
182182
)
183183
```
184184

0 commit comments

Comments
 (0)