Commit 4b1c656b authored by Sparkf's avatar Sparkf 🏙️
Browse files

add sitemap

parent 8320ff6f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ const { nprogressPlugin } = require('@vuepress/plugin-nprogress')
const { backToTopPlugin } = require('@vuepress/plugin-back-to-top')
const { gitPlugin } = require('@vuepress/plugin-git')
const { tocPlugin } = require('@vuepress/plugin-toc')
const { sitemapPlugin } = require("vuepress-plugin-sitemap2");


module.exports = {
@@ -156,6 +157,9 @@ module.exports = {
                },
            },
        }),
        sitemapPlugin({
            hostname: "https://sustech.online/",
        }),
        mediumZoomPlugin(),
        nprogressPlugin(),
        backToTopPlugin(),
+5 −0
Original line number Diff line number Diff line
User-agent: *

Allow: /

Sitemap: https://sustech.online/sitemap.xml
+2 −1
Original line number Diff line number Diff line
@@ -9,7 +9,8 @@
    "@vuepress/plugin-pwa-popup": "2.0.0-beta.43",
    "@vuepress/plugin-register-components": "2.0.0-beta.43",
    "@vuepress/plugin-toc": "2.0.0-beta.43",
    "vuepress": "2.0.0-beta.43"
    "vuepress": "2.0.0-beta.43",
    "vuepress-plugin-sitemap2": "^2.0.0-beta.61"
  },
  "scripts": {
    "docs:dev": "vuepress dev docs",