From 765e9eccb5381cf24b3a565f34ce28deec272519 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 11 Oct 2018 21:39:33 +0200 Subject: [PATCH] exclude /page & /tag paths from sitemap --- gatsby-config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gatsby-config.js b/gatsby-config.js index 790ed403..e178bf05 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -212,11 +212,16 @@ module.exports = { ] } }, + { + resolve: 'gatsby-plugin-sitemap', + options: { + exclude: ['/page/*', '/tag/*'] + } + }, 'gatsby-plugin-webpack-size', 'gatsby-plugin-react-helmet', 'gatsby-plugin-sharp', 'gatsby-transformer-sharp', - 'gatsby-plugin-sitemap', 'gatsby-plugin-catch-links', 'gatsby-redirect-from', 'gatsby-plugin-meta-redirect',