gitbook 插件 阅读更多

1. readmore 插件

Gitbook 整合 OpenWrite 平台的 readmore 插件,实现博客的每一篇文章自动增加阅读更多效果,关注公众号后方可解锁全站文章,从而实现博客流量导流到微信公众号粉丝目的.

2. 安装

npm i gitbook-plugin-readmore

or

gitbook install

3. 配置

book.json

{
    "plugins": ["readmore"],
    "pluginsConfig": {
        "readmore":{
            "blogId": "30114-1655653552581-278",
            "name": "爱死亡机器人",
            "qrcode": "https://raw.githubusercontent.com/Ghostwritten/gitbook-demo/master/assets/imgs/wechat.png",
            "keyword": "vip"
        }
    }
}

其中,配置参数含义如下:

  • blogId : [必选]OpenWrite 后台申请的博客唯一标识,例如:30114-1655653552581-278
  • name : [必选]OpenWrite 后台申请的博客名称,例如:爱死亡机器人
  • qrcode : [必选]OpenWrite 后台申请的微信公众号二维码,例如:https://raw.githubusercontent.com/Ghostwritten/gitbook-demo/master/assets/imgs/wechat.png

  • keyword : [必选]OpenWrite 后台申请的微信公众号后台回复关键字,例如:vip

4. 效果

(略)

Copyright © ghostwritten 浙ICP备2020032454号 2022 all right reserved,powered by Gitbook该文件修订时间: 2022-06-19 17:02:16

results matching ""

    No results matching ""