hexo-theme-ayer/layout/_partial/post/share.ejs

52 lines
1.8 KiB
JavaScript
Raw Permalink Normal View History

2020-02-06 15:14:35 +00:00
<%
var sUrl = url.replace(/index\.html$/, '');
sUrl = /^(http:|https:)\/\//.test(sUrl) ? sUrl : 'http:' + sUrl;
%>
<div class="share-btn">
<span class="share-sns share-outer">
<i class="ri-share-forward-line"></i>
<%- theme.share_text %>
</span>
<div class="share-wrap">
2020-02-07 04:42:33 +00:00
<i class="arrow"></i>
2020-02-06 15:14:35 +00:00
<div class="share-icons">
<% if( theme.share_china ){ %>
<a class="weibo share-sns" href="javascript:;" data-type="weibo">
<i class="ri-weibo-fill"></i>
</a>
<a class="weixin share-sns wxFab" href="javascript:;" data-type="weixin">
<i class="ri-wechat-fill"></i>
</a>
<a class="qq share-sns" href="javascript:;" data-type="qq">
<i class="ri-qq-fill"></i>
</a>
<a class="douban share-sns" href="javascript:;" data-type="douban">
<i class="ri-douban-line"></i>
</a>
<!-- <a class="qzone share-sns" href="javascript:;" data-type="qzone">
<i class="icon icon-qzone"></i>
</a> -->
<% } %>
2023-03-19 14:55:03 +00:00
<% if( theme.share_eng ) { %>
2020-02-06 15:14:35 +00:00
<a class="facebook share-sns" href="javascript:;" data-type="facebook">
<i class="ri-facebook-circle-fill"></i>
</a>
<a class="twitter share-sns" href="javascript:;" data-type="twitter">
<i class="ri-twitter-fill"></i>
</a>
<a class="google share-sns" href="javascript:;" data-type="google">
<i class="ri-google-fill"></i>
</a>
2023-03-19 14:55:03 +00:00
<% } %>
2020-02-06 15:14:35 +00:00
</div>
</div>
</div>
2023-03-19 18:52:23 +00:00
<!--
<div class="wx-share-modal">
2020-02-06 15:14:35 +00:00
<a class="modal-close" href="javascript:;"><i class="ri-close-circle-line"></i></a>
<p>扫一扫分享到微信</p>
<div class="wx-qrcode">
</div>
</div>
2023-03-19 18:52:23 +00:00
-->
2020-02-06 15:14:35 +00:00
<div id="share-mask"></div>