分享
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"