From 4b63ab0acee76c303613a18e8ab7b1dc11d6f211 Mon Sep 17 00:00:00 2001 From: Serafeim Chatzopoulos Date: Tue, 29 Nov 2022 13:18:34 +0200 Subject: [PATCH 1/2] Add sitemap.xml generation during build --- docusaurus.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docusaurus.config.js b/docusaurus.config.js index e49bbc8..84fd44e 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -64,6 +64,12 @@ const config = { theme: { customCss: require.resolve('./src/css/custom.css'), }, + sitemap: { + changefreq: 'weekly', + priority: 0.5, + ignorePatterns: ['/tags/**'], + filename: 'sitemap.xml', + }, }), ], ], -- 2.17.1 From 9a8c0f69235dd7f5897ad7f009d160353933ae69 Mon Sep 17 00:00:00 2001 From: Serafeim Chatzopoulos Date: Wed, 30 Nov 2022 14:15:45 +0200 Subject: [PATCH 2/2] Change the update frequency of the sitemap.xml to monthly --- docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 84fd44e..d613ecf 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -65,7 +65,7 @@ const config = { customCss: require.resolve('./src/css/custom.css'), }, sitemap: { - changefreq: 'weekly', + changefreq: 'monthly', priority: 0.5, ignorePatterns: ['/tags/**'], filename: 'sitemap.xml', -- 2.17.1