Skip to content

Commit

Permalink
fix: wrong behavior when there's no img provided for qrcode (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeiyanYunyi authored Jan 7, 2023
1 parent 50f7a6e commit d19ad96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/_plugins/share/layout.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="new-meta-item share -mob-share-list">
<div class="-mob-share-list share-body">
<% 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}); %>
<div class='hoverbox'>
<a class='share'><img src="<%- item.img %>"></a>
Expand Down

0 comments on commit d19ad96

Please sign in to comment.