diff --git a/gatsby-config.js b/gatsby-config.js index b23d9f7..584ffa0 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -36,7 +36,23 @@ module.exports = { }, }, 'gatsby-plugin-netlify', - 'gatsby-plugin-sitemap', + { + resolve: 'gatsby-plugin-sitemap', + options: { + query: `{ + contentfulMetadata { + siteUrl + } + + allSitePage { + nodes { + path + } + } + }`, + resolveSiteUrl: data => data.contentfulMetadata.siteUrl, + }, + }, 'gatsby-plugin-offline', ], }; diff --git a/package-lock.json b/package-lock.json index 48b4d41..6c703e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "loris-portfolio", - "version": "1.0.7", + "version": "1.0.8", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 7549a8c..8fb05ad 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "loris-portfolio", "private": true, "description": "My personal portfolio website showcasing my projects", - "version": "1.0.7", + "version": "1.0.8", "author": "Loris Bettazza ", "dependencies": { "babel-plugin-styled-components": "1.12.0",