Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theme-next/hexo-next-share
Content sharing services for NexT.
https://github.com/theme-next/hexo-next-share
social-buttons theme-next
Last synced: 22 days ago
JSON representation
Content sharing services for NexT.
- Host: GitHub
- URL: https://github.com/theme-next/hexo-next-share
- Owner: theme-next
- License: lgpl-3.0
- Created: 2017-12-31T09:50:40.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-04T08:05:15.000Z (over 4 years ago)
- Last Synced: 2024-11-03T01:33:19.673Z (about 1 month ago)
- Topics: social-buttons, theme-next
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 12
- Watchers: 13
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-next - hexo-next-share
README
# Hexo NexT Share
![Theme Version](https://img.shields.io/badge/NexT-v7.3.0+-blue.svg?style=flat-square)
![Package Version](https://img.shields.io/github/package-json/v/theme-next/hexo-next-share?style=flat-square)Content Sharing Services for NexT.
## Install
```bash
npm install theme-next/hexo-next-share
```## Configure
You can config those in both **hexo** or **theme** `_config.yml`.
#### Likely
Edit the configurations in `likely` section in the theme config file as following:
```yml next/_config.yml
# Likely Share
# See: https://ilyabirman.net/projects/likely/, https://github.com/ilyabirman/Likely
# Likely supports four looks, nine social networks, any button text.
# You are free to modify the text value and order of any network.
likely:
enable: true
cdn:
js: //cdn.jsdelivr.net/npm/ilyabirman-likely@2/release/likely.min.js
css: //cdn.jsdelivr.net/npm/ilyabirman-likely@2/release/likely.min.css
look: normal # available values: normal, light, small, big
networks:
twitter: Tweet
facebook: Share
linkedin: Link
gplus: Plus
vkontakte: Share
odnoklassniki: Class
telegram: Send
whatsapp: Send
pinterest: Pin
```#### Need More Share
Set the value `enable` to `true`, and edit other configurations in `needmoreshare` section in the theme config file as following:
```yml next/_config.yml
# NeedMoreShare2
# Dependencies: https://github.com/theme-next/theme-next-needmoreshare2
# For more information: https://github.com/revir/need-more-share2
# iconStyle: default | box
# boxForm: horizontal | vertical
# position: top / middle / bottom + Left / Center / Right
# networks:
# Weibo | Wechat | Douban | QQZone | Twitter | Facebook | Linkedin | Mailto | Reddit | Delicious | StumbleUpon | Pinterest
# GooglePlus | Tumblr | GoogleBookmarks | Newsvine | Evernote | Friendfeed | Vkontakte | Odnoklassniki | Mailru
needmoreshare:
enable: true
cdn:
js: //cdn.jsdelivr.net/gh/theme-next/theme-next-needmoreshare2@1/needsharebutton.min.js
css: //cdn.jsdelivr.net/gh/theme-next/theme-next-needmoreshare2@1/needsharebutton.min.css
postbottom:
enable: true
options:
iconStyle: box
boxForm: horizontal
position: bottomCenter
networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook
float:
enable: false
options:
iconStyle: box
boxForm: horizontal
position: middleRight
networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook
```#### Share.js
```yml next/_config.yml
# share.js
# See: https://github.com/overtrue/share.js
# networks: weibo,qq,wechat,tencent,douban,qzone,linkedin,diandian,facebook,twitter,google
sharejs:
enable: true
cdn:
js: //cdn.jsdelivr.net/npm/social-share.js@1/dist/js/social-share.min.js
css: //cdn.jsdelivr.net/npm/social-share.js@1/dist/js/social-share.min.css
networks: weibo,qq,wechat,tencent,douban,qzone,linkedin,diandian,facebook,twitter,google
wechat_qrcode:
title: share.title
prompt: share.prompt
```