分享

1. sharing-plus 插件

sharing-plus 插件:分享当前页面,比默认的 sharing 插件多了一些分享方式。

1.1 安装

npm i gitbook-plugin-sharing-plus

1.2 配置

{
    "plugins": ["-sharing", "sharing-plus"],
    "pluginsConfig": {
        "sharing": {
             "douban": false,
             "facebook": false,
             "google": true,
             "pocket": false,
             "qq": false,
             "qzone": true,
             "twitter": false,
             "weibo": true,
          "all": [
               "douban", "facebook", "google", "instapaper", "linkedin","twitter", "weibo", 
               "messenger","qq", "qzone","viber","whatsapp"
           ]
       }
    }
}

其中: 为true的代表直接显示在页面顶端,为false的不显示,不写默认为false "all"中代表点击分享符号显示出来的

支持的网站如下:

"douban", "facebook", "google", "hatenaBookmark", "instapaper", "linkedin","twitter", "weibo", "messenger","qq", "qzone","viber","vk","weibo", "pocket", "stumbleupon","whatsapp"

1.3 效果

在这里插入图片描述

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

results matching ""

    No results matching ""