gatsby-plugin-sitemap
Advanced tools
Comparing version 1.0.0-beta.5-alpha.c64a932e to 1.0.0-beta.5-alpha.dfde8a10
@@ -25,3 +25,8 @@ "use strict"; | ||
setHeadComponents([_react2.default.createElement("link", { rel: "sitemap", type: "application/xml", href: output })]); | ||
setHeadComponents([_react2.default.createElement("link", { | ||
key: "gatsby-plugin-sitemap", | ||
rel: "sitemap", | ||
type: "application/xml", | ||
href: output | ||
})]); | ||
}; |
@@ -31,3 +31,3 @@ "use strict"; | ||
var defaultOptions = exports.defaultOptions = { | ||
query: "\n {\n site {\n siteMetadata {\n site_url\n }\n }\n allMarkdownRemark(\n limit: 1000,\n filter: {\n frontmatter: {\n draft: { ne: true }\n }\n }\n ) {\n edges {\n node {\n fields {\n slug\n }\n }\n }\n }\n }\n ", | ||
query: "\n {\n site {\n siteMetadata {\n siteUrl\n }\n }\n allMarkdownRemark(\n limit: 1000,\n filter: {\n frontmatter: {\n draft: { ne: true }\n }\n }\n ) {\n edges {\n node {\n fields {\n slug\n }\n }\n }\n }\n }\n ", | ||
output: "/sitemap.xml", | ||
@@ -39,3 +39,3 @@ serialize: function serialize(_ref) { | ||
return { | ||
url: site.siteMetadata.site_url + edge.node.fields.slug | ||
url: site.siteMetadata.siteUrl + edge.node.fields.slug | ||
}; | ||
@@ -42,0 +42,0 @@ }); |
{ | ||
"name": "gatsby-plugin-sitemap", | ||
"version": "1.0.0-beta.5-alpha.c64a932e", | ||
"version": "1.0.0-beta.5-alpha.dfde8a10", | ||
"description": "Stub description for gatsby-plugin-sitemap", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,3 +7,3 @@ # gatsby-plugin-sitemap | ||
```npm install --save gatsby-plugin-sitemap``` | ||
`npm install --save gatsby-plugin-sitemap` | ||
@@ -15,3 +15,3 @@ ## How to Use | ||
siteMetadata: { | ||
site_url | ||
siteUrl: `https://www.example.com`, | ||
}, | ||
@@ -23,5 +23,8 @@ plugins: [ | ||
] | ||
``` | ||
Above is the minmal configuration required to have it work, however, note that | ||
the [default | ||
query](https://github.com/gatsbyjs/gatsby/blob/1.0/packages/gatsby-plugin-sitemap/src/internals.js) only retrieves nodes of type `MarkdownRemark`. Any parameter in `defaultOptions` can be overridden. | ||
query](https://github.com/gatsbyjs/gatsby/blob/1.0/packages/gatsby-plugin-sitemap/src/internals.js) | ||
only retrieves nodes of type `MarkdownRemark`. Any parameter in | ||
`defaultOptions` can be overridden. |
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
6431
102
28