Skip to content

Commit

Permalink
添加sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
guyue-ls committed Oct 23, 2020
1 parent 9159bdd commit bc8a2cd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ module.exports = {
"@vuepress/medium-zoom",
"@vuepress/back-to-top",
["@vuepress/google-analytics", { ga: "UA-150419494-2" }],
["sitemap", { hostname: "https://docs.laoshan-tech.com" }],
[
"@vuepress/last-updated",
{
transformer: (timestamp) => {
return new Date(timestamp).toISOString();
},
},
],
],
};

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"lint-md-cli": "^0.1.2",
"prettier": "^2.0.5",
"vuepress-plugin-clean-urls": "^1.1.1",
"vuepress-plugin-mathjax": "^1.2.8"
"vuepress-plugin-mathjax": "^1.2.8",
"vuepress-plugin-sitemap": "^2.3.1"
},
"scripts": {
"lint": "lint-md .",
Expand Down

0 comments on commit bc8a2cd

Please sign in to comment.