Skip to content

Commit ec15885

Browse files
authored
Add sitemap (techlore#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 techlore#121
1 parent ea252db commit ec15885

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

gatsby-config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
siteMetadata: {
33
title: `Plexus`,
4+
siteUrl: `https://plexus.techlore.tech`,
45
description: `Remove the fear of Android app compatibility on de-Googled devices.`,
56
author: `@tomkonidas`,
67
},
@@ -52,6 +53,7 @@ module.exports = {
5253
fieldName: "slug",
5354
},
5455
},
56+
`gatsby-plugin-sitemap`,
5557
// this (optional) plugin enables Progressive Web App + Offline functionality
5658
// To learn more, visit: https://gatsby.dev/offline
5759
// `gatsby-plugin-offline`,

package-lock.json

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"gatsby-plugin-react-helmet": "^3.7.0",
1414
"gatsby-plugin-react-svg": "^3.0.0",
1515
"gatsby-plugin-sharp": "^2.11.2",
16+
"gatsby-plugin-sitemap": "2.11.0",
1617
"gatsby-plugin-slug-field": "^0.2.0",
1718
"gatsby-source-filesystem": "^2.8.1",
1819
"gatsby-transformer-csv": "^2.7.0",

0 commit comments

Comments
 (0)