Skip to content

Commit

Permalink
sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
luiztauffer committed Jul 14, 2024
1 parent 97284a2 commit 680429e
Show file tree
Hide file tree
Showing 3 changed files with 3,579 additions and 37 deletions.
12 changes: 12 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ const config = {
trackingID: 'G-1V1CKBCDCW',
anonymizeIP: true,
},
sitemap: {
// lastmod: 'date',
changefreq: 'weekly',
priority: 0.5,
ignorePatterns: ['/tags/**'],
filename: 'sitemap.xml',
// createSitemapItems: async (params) => {
// const { defaultCreateSitemapItems, ...rest } = params;
// const items = await defaultCreateSitemapItems(rest);
// return items.filter((item) => !item.url.includes('/page/'));
// },
},
},
],
],
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@docusaurus/core": "^2.4.3",
"@docusaurus/plugin-content-pages": "^2.4.3",
"@docusaurus/plugin-google-gtag": "^2.4.3",
"@docusaurus/plugin-sitemap": "^3.4.0",
"@docusaurus/preset-classic": "^2.4.3",
"@fortawesome/fontawesome-free": "^6.4.2",
"@fortawesome/fontawesome-svg-core": "^6.4.2",
Expand Down
Loading

0 comments on commit 680429e

Please sign in to comment.