vdoing主题vuepress的v1版本集成Artalk

Terwer...小于 1 分钟前端开发comment

vdoing主题vuepress的v1版本集成Artalk

后端部署

https://artalk.js.org/guide/backend/install.html#%E4%BD%BF%E7%94%A8-dockeropen in new window

使用 docker-compose 部署即可,很简单。这里需要注意的是配置 https。

可参考我的:https://github.com/terwer/Artalkopen in new window

备注:我开启了 CORS 保护,默认只有 https://terwergreen.comopen in new window 域名才能引用。

前端部署

安装 Artalk 插件

yarn add vuepress-plugin-vdoing-comment -D  

配置评论

plugins:{
  [
     'vuepress-plugin-vdoing-comment', // 评论
      {
        choosen: 'artalk',
        options: {
          server: 'https://my-artalk-server',
          site: '站点名称',
        }
      }
  ]
}

OK。

image-20220707004134784
image-20220707004134784

效果

image-20220707005046846
image-20220707005046846

注意

https 配置问题

这个直接咨询云服务提供方即可,我的是阿里云的,使用官方文档就配置好了。

评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.14.9