Skip to content

Commit

Permalink
feat: update sitemap configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
yzeng25 committed Feb 19, 2021
1 parent c8cd5db commit 252bef8
Show file tree
Hide file tree
Showing 3 changed files with 2,614 additions and 23 deletions.
13 changes: 12 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,16 @@ module.exports = {
k3sBaseCommit:
"1203cf0bb163b71b198382b44e6e543cd3672f33 - Dec 24, 2020",
},
plugins: ["@docusaurus/plugin-baidu-analytics"],
plugins: [
"@docusaurus/plugin-baidu-analytics",
[
"@docusaurus/plugin-sitemap",
{
cacheTime: 600 * 1000, // 600 sec - cache purge period
changefreq: "weekly",
priority: 0.5,
trailingSlash: false,
},
],
],
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"dependencies": {
"@docusaurus/core": "^2.0.0-alpha.50",
"@docusaurus/plugin-baidu-analytics": "https://github.com/thxcode/docusaurus-plugin-baidu-analytics",
"@docusaurus/plugin-sitemap": "^2.0.0-alpha.70",
"@docusaurus/preset-classic": "^2.0.0-alpha.50",
"axios": "0.19.2",
"classnames": "^2.2.6",
Expand Down
Loading

0 comments on commit 252bef8

Please sign in to comment.