diff --git a/_config.yml b/_config.yml index 44c5ccb7e..dfee01d54 100755 --- a/_config.yml +++ b/_config.yml @@ -253,15 +253,11 @@ meta: - id: qzone name: QQ空间 img: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-assets/logo/128/qzone.png - # - id: qrcode # 当id为qrcode时需要安装插件 npm i -S hexo-helper-qrcode - # name: 微信 - # img: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-assets/logo/128/wechat.png - id: weibo name: 微博 img: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-assets/logo/128/weibo.png # - id: qrcode # 当id为qrcode时需要安装插件 npm i -S hexo-helper-qrcode # name: QRcode - # img: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-assets/logo/128/qrcode.png # 链接 btns: edit: diff --git a/layout/_third-party/share.ejs b/layout/_third-party/share.ejs index d310400e0..8d8eae642 100644 --- a/layout/_third-party/share.ejs +++ b/layout/_third-party/share.ejs @@ -2,13 +2,12 @@
<% (theme.meta.share||[]).forEach(function(item){ %> <% if (item.id == 'qrcode'){ %> - - <% if (item.img){ %> - - <% } else if (item.icon){ %> - - <% } %> - + <% var src = qrcode(url,{margin:1,size:8}); %> + + + + + <% } else { %>