Browse Source

Add sitemap (#124)

I have added a plugin to generate a sitemap for each page/ app entry in
the project. On every build it will generate the sitemap at
`/sitemap.xml`

Close #121
pull/125/head
Tom Konidas 3 months ago
committed by GitHub
parent
commit
ec15885869
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      gatsby-config.js
  2. 38
      package-lock.json
  3. 1
      package.json

2
gatsby-config.js

@ -1,6 +1,7 @@
module.exports = {
siteMetadata: {
title: `Plexus`,
siteUrl: `https://plexus.techlore.tech`,
description: `Remove the fear of Android app compatibility on de-Googled devices.`,
author: `@tomkonidas`,
},
@ -52,6 +53,7 @@ module.exports = {
fieldName: "slug",
},
},
`gatsby-plugin-sitemap`,
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,

38
package-lock.json

@ -8664,6 +8664,25 @@
}
}
},
"gatsby-plugin-sitemap": {
"version": "2.11.0",
"resolved": "https://registry.npmjs.org/gatsby-plugin-sitemap/-/gatsby-plugin-sitemap-2.11.0.tgz",
"integrity": "sha512-W9LOdRhvYsc4Iq67UpXEe+R9FeITSNNpF+Xr5ej4mAqye76UE5kHkjyFLJBqfuwc1ANSsi6e3TKrdYoRV90P2w==",
"requires": {
"@babel/runtime": "^7.12.5",
"common-tags": "^1.8.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="
}
}
},
"gatsby-plugin-slug-field": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/gatsby-plugin-slug-field/-/gatsby-plugin-slug-field-0.2.0.tgz",
@ -15711,6 +15730,15 @@
"resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",
"integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg=="
},
"sitemap": {
"version": "1.13.0",
"resolved": "https://registry.npmjs.org/sitemap/-/sitemap-1.13.0.tgz",
"integrity": "sha1-Vpy+IYAgKSamKiZs094Jyc60P4M=",
"requires": {
"underscore": "^1.7.0",
"url-join": "^1.1.0"
}
},
"slash": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@ -17443,6 +17471,11 @@
"resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz",
"integrity": "sha1-5z3T17DXxe2G+6xrCufYxqadUPo="
},
"underscore": {
"version": "1.12.0",
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.12.0.tgz",
"integrity": "sha512-21rQzss/XPMjolTiIezSu3JAjgagXKROtNrYFEOWK109qY1Uv2tVjPTZ1ci2HgvQDA16gHYSthQIJfB+XId/rQ=="
},
"unherit": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/unherit/-/unherit-1.1.3.tgz",
@ -17846,6 +17879,11 @@
}
}
},
"url-join": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/url-join/-/url-join-1.1.0.tgz",
"integrity": "sha1-dBxsL0WWxIMNZxhGCSDQySIC3Hg="
},
"url-loader": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/url-loader/-/url-loader-1.1.2.tgz",

1
package.json

@ -13,6 +13,7 @@
"gatsby-plugin-react-helmet": "^3.7.0",
"gatsby-plugin-react-svg": "^3.0.0",
"gatsby-plugin-sharp": "^2.11.2",
"gatsby-plugin-sitemap": "2.11.0",
"gatsby-plugin-slug-field": "^0.2.0",
"gatsby-source-filesystem": "^2.8.1",
"gatsby-transformer-csv": "^2.7.0",

Loading…
Cancel
Save