Giter VIP home page Giter VIP logo

Comments (1)

Tikas avatar Tikas commented on June 5, 2024

一直留意 hope 的 sitemap2 进度,也在思考为什么 v1 能成功,而 v2 却失败。

在对比了 vuepress 官方文档的插件对比,得出 sitemap 插件需要额外再配置 hostname 的结论,于是马上动手:

安装插件:

yarn add -D vuepress-plugin-sitemap2

配置插件:

module.exports = {
  plugins: [
    [
      'vuepress-plugin-sitemap2',
      {
        hostname: 'https://hostname.com',
      },
    ],
  ],
}

执行 yarn docs:build 竟然能成功生成 sitemap 站点文件,庆祝!(作为只能看懂 html 文本的我,这是值得庆祝一下)

但是站点文件并没有时间,只是单纯的相关文章链接

再看 @Mister-Hope 已经把 sitemap 更新到 v2.0.0-alpha.8

如是自己也跟着更新

yarn add -D [email protected]

结果不错,有时间更新信息了,期待 hope 发布正式版本

之所以写的这么详细,是给那些同样从 hexo 转过来,却又不懂 vue 的朋友参考

from vuepress-theme-mix.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.