Socket
Socket
Sign inDemoInstall

gatsby-plugin-sitemap

Package Overview
Dependencies
Maintainers
1
Versions
524
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-sitemap - npm Package Compare versions

Comparing version 1.0.0-beta.5-alpha.c64a932e to 1.0.0-beta.5-alpha.dfde8a10

7

gatsby-ssr.js

@@ -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
})]);
};

4

internals.js

@@ -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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc