gatsby-plugin-sitemap
Advanced tools
Comparing version 1.2.7 to 1.2.8
{ | ||
"name": "gatsby-plugin-sitemap", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "Stub description for gatsby-plugin-sitemap", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -23,6 +23,41 @@ # gatsby-plugin-sitemap | ||
Above is the minimal configuration required to have it work, however, note that | ||
the | ||
[default query](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-sitemap/src/internals.js) | ||
only retrieves nodes of type `MarkdownRemark`. Any parameter in `defaultOptions` | ||
can be overridden. | ||
Above is the minimal configuration required to have it work. By default, the | ||
generated sitemap will include all of your site's pages except the dev 404 page | ||
(`/dev-404-page/`). | ||
The [default query](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-sitemap/src/internals.js#L16) | ||
as well as any of the other `defaultOptions` [here](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-sitemap/src/internals.js#L15) | ||
can be overridden - for example: | ||
```javascript | ||
// In your gatsby-config.js | ||
siteMetadata: { | ||
siteUrl: `https://www.example.com`, | ||
}, | ||
plugins: [ | ||
{ | ||
resolve: `gatsby-plugin-sitemap` | ||
options: { | ||
output: `/some-other-sitemap.xml`, | ||
query: ` | ||
{ | ||
site { | ||
siteMetadata { | ||
siteUrl | ||
} | ||
} | ||
allSitePage { | ||
edges { | ||
node { | ||
path | ||
} | ||
} | ||
} | ||
}` | ||
} | ||
} | ||
] | ||
``` | ||
_NOTE: This plugin only generates output when run in `production` mode! To test your sitemap, run: `gatsby build && gatsby serve`_ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6733
63