Commit c93643af authored by Sparkf's avatar Sparkf 🏙️
Browse files

add plugin: sitemap

parent 1988ae0a
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -31,10 +31,16 @@ module.exports = {
          // 不要忘了安装 moment
          const moment = require('moment')
          moment.locale(lang)
          return moment(timestamp).fromNow()
          return moment(timestamp).format("YYYY-MM-DD HH:mm")
        },
      },
    ],
    [
    'sitemap',
     {
      hostname: 'https://sustech.online'
    },
    ],
  ],
  themeConfig: {
    nav: [
+3 −1
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@
    "docs:cname": "echo \"sustech.online\"> docs/.vuepress/dist/CNAME"
  },
  "dependencies": {
    "moment": "^2.26.0"
    "esm": "^3.2.25",
    "moment": "^2.26.0",
    "vuepress-plugin-sitemap": "^2.3.1"
  }
}