fix theme...
This commit is contained in:
10
themes/anzhiyu/layout/includes/third-party/share/addtoany.pug
vendored
Normal file
10
themes/anzhiyu/layout/includes/third-party/share/addtoany.pug
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
.addtoany
|
||||
.a2a_kit.a2a_kit_size_32.a2a_default_style
|
||||
- let addtoanyItem = theme.addtoany.item.split(',')
|
||||
each name in addtoanyItem
|
||||
a(class="a2a_button_" + name)
|
||||
|
||||
a.a2a_dd(href="https://www.addtoany.com/share")
|
||||
script(async src='https://static.addtoany.com/menu/page.js')
|
||||
|
||||
|
||||
6
themes/anzhiyu/layout/includes/third-party/share/index.pug
vendored
Normal file
6
themes/anzhiyu/layout/includes/third-party/share/index.pug
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
if (theme.sharejs.enable || theme.addtoany.enable)
|
||||
.post_share
|
||||
if theme.sharejs.enable
|
||||
include ./share-js.pug
|
||||
else if theme.addtoany.enable
|
||||
!=partial('includes/third-party/share/addtoany', {}, {cache: true})
|
||||
3
themes/anzhiyu/layout/includes/third-party/share/share-js.pug
vendored
Normal file
3
themes/anzhiyu/layout/includes/third-party/share/share-js.pug
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
.social-share(data-image=url_for(page.cover|| theme.avatar.img) data-sites= theme.sharejs.sites)
|
||||
link(rel='stylesheet' href=url_for(theme.asset.sharejs_css) media="print" onload="this.media='all'")
|
||||
script(src=url_for(theme.asset.sharejs) defer)
|
||||
Reference in New Issue
Block a user