From 1f624753e0eb5cb9b8cced9c0a4ee7e01d087383 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Tue, 3 Mar 2020 16:58:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E4=BA=8C=E7=BB=B4=E7=A0=81?= =?UTF-8?q?=E5=88=86=E4=BA=AB=E5=BD=93=E5=89=8D=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 4 ---- layout/_third-party/share.ejs | 13 ++++++------- 2 files changed, 6 insertions(+), 11 deletions(-) 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 { %>