diff --git a/layout/_plugins/share/layout.ejs b/layout/_plugins/share/layout.ejs index dd2983277..b8bd9f08c 100644 --- a/layout/_plugins/share/layout.ejs +++ b/layout/_plugins/share/layout.ejs @@ -1,7 +1,7 @@
<% getList(theme.article.body.meta_library.share).forEach(function(item){ %> - <% if (item.id == 'qrcode'){ %> + <% if (item.id == 'qrcode' && (item.img || item.icon)){ %> <% var src = qrcode(url,{margin:1,size:8}); %>