mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 17:50:54 +08:00
first commit
This commit is contained in:
2
layout/includes/share/add-this.pug
Normal file
2
layout/includes/share/add-this.pug
Normal file
@@ -0,0 +1,2 @@
|
||||
.addthis_inline_share_toolbox.pull-right
|
||||
script(src=`//s7.addthis.com/js/300/addthis_widget.js#pubid=${theme.addThis.pubid}` async)
|
||||
13
layout/includes/share/addtoany.pug
Normal file
13
layout/includes/share/addtoany.pug
Normal file
@@ -0,0 +1,13 @@
|
||||
.addtoany
|
||||
.a2a_kit.a2a_kit_size_32.a2a_default_style
|
||||
a.a2a_button_facebook
|
||||
a.a2a_button_twitter
|
||||
a.a2a_button_wechat
|
||||
a.a2a_button_sina_weibo
|
||||
a.a2a_button_facebook_messenger
|
||||
a.a2a_button_email
|
||||
a.a2a_button_copy_link
|
||||
a.a2a_dd(href="https://www.addtoany.com/share")
|
||||
script(async src="https://static.addtoany.com/menu/page.js")
|
||||
|
||||
|
||||
7
layout/includes/share/index.pug
Normal file
7
layout/includes/share/index.pug
Normal file
@@ -0,0 +1,7 @@
|
||||
.post_share
|
||||
if theme.addThis.enable
|
||||
include ./add-this.pug
|
||||
else if theme.sharejs && theme.sharejs.enable
|
||||
include ./share-js.pug
|
||||
else if theme.addtoany.enable
|
||||
include ./addtoany.pug
|
||||
4
layout/includes/share/share-js.pug
Normal file
4
layout/includes/share/share-js.pug
Normal file
@@ -0,0 +1,4 @@
|
||||
if (theme.sharejs && theme.sharejs.enable)
|
||||
.social-share(data-image= page.cover|| theme.avatar data-sites= theme.sharejs.sites)
|
||||
link(rel="stylesheet" href="https://cdn.jsdelivr.net/npm/social-share.js@1.0.16/dist/css/share.min.css")
|
||||
script(src="https://cdn.jsdelivr.net/npm/social-share.js@1.0.16/dist/js/social-share.min.js")
|
||||
Reference in New Issue
Block a user