Add sitemap generation
This commit is contained in:
@ -4,6 +4,7 @@ module.exports = {
|
|||||||
description: `Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.`,
|
description: `Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.`,
|
||||||
shortName: `30s`,
|
shortName: `30s`,
|
||||||
repositoryUrl: `https://github.com/30-seconds/30-seconds-of-code`,
|
repositoryUrl: `https://github.com/30-seconds/30-seconds-of-code`,
|
||||||
|
siteUrl: `https://www.30secondsofcode.org`,
|
||||||
// Path information
|
// Path information
|
||||||
snippetPath: `snippets`,
|
snippetPath: `snippets`,
|
||||||
snippetArchivePath: `snippets_archive`,
|
snippetArchivePath: `snippets_archive`,
|
||||||
|
|||||||
@ -5,8 +5,10 @@ module.exports = {
|
|||||||
title: `${config.name}`,
|
title: `${config.name}`,
|
||||||
description: `${config.description}`,
|
description: `${config.description}`,
|
||||||
author: `@30-seconds`,
|
author: `@30-seconds`,
|
||||||
|
siteUrl: `${config.siteUrl}`,
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
`gatsby-plugin-sitemap`,
|
||||||
`gatsby-plugin-transition-link`,
|
`gatsby-plugin-transition-link`,
|
||||||
{
|
{
|
||||||
resolve: `gatsby-source-filesystem`,
|
resolve: `gatsby-source-filesystem`,
|
||||||
|
|||||||
42
package-lock.json
generated
42
package-lock.json
generated
@ -9492,6 +9492,26 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"gatsby-plugin-sitemap": {
|
||||||
|
"version": "2.2.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/gatsby-plugin-sitemap/-/gatsby-plugin-sitemap-2.2.8.tgz",
|
||||||
|
"integrity": "sha512-FDWspoz4cymHis6d+PrDWm4RudoVHcGT1sjoiL8/i/zKaFZCVyDmxK2JDAy6TdpK4nLr/wc+np4n+Y5lKgfDRw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@babel/runtime": "^7.0.0",
|
||||||
|
"minimatch": "^3.0.4",
|
||||||
|
"pify": "^3.0.0",
|
||||||
|
"sitemap": "^1.13.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"pify": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
|
||||||
|
"integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"gatsby-plugin-transition-link": {
|
"gatsby-plugin-transition-link": {
|
||||||
"version": "1.12.4",
|
"version": "1.12.4",
|
||||||
"resolved": "https://registry.npmjs.org/gatsby-plugin-transition-link/-/gatsby-plugin-transition-link-1.12.4.tgz",
|
"resolved": "https://registry.npmjs.org/gatsby-plugin-transition-link/-/gatsby-plugin-transition-link-1.12.4.tgz",
|
||||||
@ -18843,6 +18863,16 @@
|
|||||||
"integrity": "sha512-SbEG75TzH8G7eVXFSN5f9EExILKfly7SUvVY5DhhYLvfhKqhDFY0OzevWa/zwak0RLRfWS5AvfMWpd9gJvr5Yg==",
|
"integrity": "sha512-SbEG75TzH8G7eVXFSN5f9EExILKfly7SUvVY5DhhYLvfhKqhDFY0OzevWa/zwak0RLRfWS5AvfMWpd9gJvr5Yg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"sitemap": {
|
||||||
|
"version": "1.13.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/sitemap/-/sitemap-1.13.0.tgz",
|
||||||
|
"integrity": "sha1-Vpy+IYAgKSamKiZs094Jyc60P4M=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"underscore": "^1.7.0",
|
||||||
|
"url-join": "^1.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"slash": {
|
"slash": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz",
|
||||||
@ -20533,6 +20563,12 @@
|
|||||||
"integrity": "sha1-5z3T17DXxe2G+6xrCufYxqadUPo=",
|
"integrity": "sha1-5z3T17DXxe2G+6xrCufYxqadUPo=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"underscore": {
|
||||||
|
"version": "1.9.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz",
|
||||||
|
"integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"underscore.string": {
|
"underscore.string": {
|
||||||
"version": "3.3.5",
|
"version": "3.3.5",
|
||||||
"resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.3.5.tgz",
|
"resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.3.5.tgz",
|
||||||
@ -20962,6 +20998,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"url-join": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/url-join/-/url-join-1.1.0.tgz",
|
||||||
|
"integrity": "sha1-dBxsL0WWxIMNZxhGCSDQySIC3Hg=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"url-loader": {
|
"url-loader": {
|
||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/url-loader/-/url-loader-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/url-loader/-/url-loader-1.1.2.tgz",
|
||||||
|
|||||||
@ -54,6 +54,7 @@
|
|||||||
"gatsby-plugin-react-helmet": "^3.1.2",
|
"gatsby-plugin-react-helmet": "^3.1.2",
|
||||||
"gatsby-plugin-sass": "^2.1.3",
|
"gatsby-plugin-sass": "^2.1.3",
|
||||||
"gatsby-plugin-sharp": "^2.2.7",
|
"gatsby-plugin-sharp": "^2.2.7",
|
||||||
|
"gatsby-plugin-sitemap": "^2.2.8",
|
||||||
"gatsby-plugin-transition-link": "^1.12.4",
|
"gatsby-plugin-transition-link": "^1.12.4",
|
||||||
"gatsby-remark-copy-linked-files": "^2.1.3",
|
"gatsby-remark-copy-linked-files": "^2.1.3",
|
||||||
"gatsby-remark-images": "^3.1.6",
|
"gatsby-remark-images": "^3.1.6",
|
||||||
|
|||||||
Reference in New Issue
Block a user