You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<div class="new-meta-item share -mob-share-list">
|
|
|
|
<div class="-mob-share-list share-body">
|
|
|
|
<% (theme.meta.share||[]).forEach(function(item){ %>
|
|
|
|
<% if (item.id == 'qrcode'){ %>
|
|
|
|
<% var src = qrcode(url,{margin:1,size:8}); %>
|
|
|
|
<fancybox>
|
|
|
|
<a class='qrcode' rel="external nofollow noopener noreferrer" data-fancybox="gallery-qrcode" href="<%- src %>">
|
|
|
|
<img style='height:16px;border-radius:0;margin-left:4px' src="<%- src %>">
|
|
|
|
</a>
|
|
|
|
</fancybox>
|
|
|
|
<% } else { %>
|
|
|
|
<a class="-mob-share-<%- item.id %>" title="<%- item.name %>" rel="external nofollow noopener noreferrer"
|
|
|
|
<% if (item.id == 'qzone'){ %>
|
|
|
|
href="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=<%- post.permalink %>&title=<%- post.title + ' - ' + config.title %><%- (post.thumbnail) ? '&pics=' + (post.thumbnail) : '' %>&summary=<%- strip_html(post.excerpt) %>"
|
|
|
|
<% } else if (item.id == 'qq'){ %>
|
|
|
|
href="http://connect.qq.com/widget/shareqq/index.html?url=<%- post.permalink %>&title=<%- post.title + ' - ' + config.title %><%- (post.thumbnail) ? '&pics=' + (post.thumbnail) : '' %>&summary=<%- strip_html(post.excerpt) %>"
|
|
|
|
<% } else if (item.id == 'weibo'){ %>
|
|
|
|
href="http://service.weibo.com/share/share.php?url=<%- post.permalink %>&title=<%- post.title + ' - ' + config.title %><%- (post.thumbnail) ? '&pics=' + (post.thumbnail) : '' %>&summary=<%- strip_html(post.excerpt) %>"
|
|
|
|
<% } %>
|
|
|
|
>
|
|
|
|
<% if (item.img){ %>
|
|
|
|
<img src="<%- item.img %>">
|
|
|
|
<% } else if (item.icon){ %>
|
|
|
|
<i class="<%- item.icon %> fa-fw"></i>
|
|
|
|
<% } %>
|
|
|
|
</a>
|
|
|
|
<% } %>
|
|
|
|
<% }) %>
|
|
|
|
</div>
|
|
|
|
</div>
|