From bc8a2cd33f2c3ca593c478270ed399b42443912f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=81=93=E5=A3=AB=E7=94=B2?= <65347330+laoshan-taoist@users.noreply.github.com> Date: Fri, 23 Oct 2020 15:10:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0sitemap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/config.js | 9 +++++++++ package.json | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 54f78c7..cf5502e 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -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(); + }, + }, + ], ], }; diff --git a/package.json b/package.json index 3f70c04..58c3d31 100644 --- a/package.json +++ b/package.json @@ -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 .",